mirror of
https://dev.iopsys.eu/voice/tr104.git
synced 2025-12-20 01:21:51 +08:00
18 lines
478 B
CMake
18 lines
478 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
|
|
PROJECT(tr104d)
|
|
|
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${CMAKE_SOURCE_DIR} -I${CMAKE_SOURCE_DIR}/libdmtree")
|
|
|
|
OPTION(DM_ENABLE_DECT "Enable DECT support" OFF)
|
|
|
|
IF(DM_ENABLE_DECT)
|
|
ADD_DEFINITIONS(-DDM_ENABLE_DECT)
|
|
ENDIF(DM_ENABLE_DECT)
|
|
|
|
FILE(GLOB BBF_SOURCES *.c)
|
|
ADD_EXECUTABLE(tr104d ${BBF_SOURCES})
|
|
TARGET_LINK_LIBRARIES(tr104d dmtree ubus ubox blobmsg_json uci json-c json_hal_server dl rt)
|
|
|
|
INSTALL(TARGETS tr104d DESTINATION usr/sbin)
|