CMakeLists.txt 532 字节
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
  ADD_LIBRARY(mqtt ${SRC})
H
Hui Li 已提交
13
  TARGET_LINK_LIBRARIES(mqtt taos cJson mqttc)
14 15

  IF (TD_ADMIN)
麦壳饼's avatar
麦壳饼 已提交
16
    TARGET_LINK_LIBRARIES(mqtt admin cJson)
17 18
  ENDIF ()
ENDIF ()