CMakeLists.txt 635 字节
Newer Older
1 2 3
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(TDengine)

S
TD-1057  
Shengliang Guan 已提交
4 5 6 7
INCLUDE_DIRECTORIES(inc)
AUX_SOURCE_DIRECTORY(src SRC)

IF (TD_LINUX)
8 9
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/client/inc)
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/query/inc)
麦壳饼's avatar
麦壳饼 已提交
10 11
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/MQTT-C/include)
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/MQTT-C/examples/templates)
12 13
  ADD_LIBRARY(mqtt ${SRC})

H
Hui Li 已提交
14 15 16 17 18
  IF (TD_SOMODE_STATIC)
    TARGET_LINK_LIBRARIES(mqtt taos_static cJson mqttc)
  ELSE ()
    TARGET_LINK_LIBRARIES(mqtt taos cJson mqttc)
  ENDIF ()
19
  IF (TD_ADMIN)
麦壳饼's avatar
麦壳饼 已提交
20
    TARGET_LINK_LIBRARIES(mqtt admin cJson)
21 22
  ENDIF ()
ENDIF ()