CMakeLists.txt 714 字节
Newer Older
1
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
J
jtao1735 已提交
2 3 4
PROJECT(TDengine)

INCLUDE_DIRECTORIES(inc)
5 6
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/client/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/query/inc)
J
jtao1735 已提交
7 8
AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/src SRC)

S
TD-1207  
Shengliang Guan 已提交
9
IF (TD_LINUX OR TD_WINDOWS)
S
TD-1057  
Shengliang Guan 已提交
10
  ADD_LIBRARY(tcq ${SRC})
H
Hui Li 已提交
11 12
  IF (TD_SOMODE_STATIC)
    TARGET_LINK_LIBRARIES(tcq tutil common taos_static)
13 14 15 16 17 18 19 20 21 22 23
  ELSE ()
    TARGET_LINK_LIBRARIES(tcq tutil common taos)
  ENDIF ()
  ADD_SUBDIRECTORY(test)
ENDIF ()

IF (TD_DARWIN)
  ADD_LIBRARY(tcq ${SRC})
  IF (TD_SOMODE_STATIC)
    TARGET_LINK_LIBRARIES(tcq tutil common taos_static)
  ELSE ()
H
Hui Li 已提交
24 25
    TARGET_LINK_LIBRARIES(tcq tutil common taos)
  ENDIF ()
S
TD-1057  
Shengliang Guan 已提交
26 27
  ADD_SUBDIRECTORY(test)
ENDIF ()