CMakeLists.txt 730 字节
Newer Older
1
CMAKE_MINIMUM_REQUIRED(VERSION 3.0...3.20)
2 3
PROJECT(TDengine)

S
slguan 已提交
4
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/tsdb/inc)
S
slguan 已提交
5
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/client/inc)
6 7
INCLUDE_DIRECTORIES(inc)

S
TD-1057  
Shengliang Guan 已提交
8 9 10
AUX_SOURCE_DIRECTORY(src SRC)
ADD_LIBRARY(query ${SRC})
SET_SOURCE_FILES_PROPERTIES(src/sql.c PROPERTIES COMPILE_FLAGS -w)
11
TARGET_LINK_LIBRARIES(query tsdb tutil ${LINK_LUA})
S
TD-1057  
Shengliang Guan 已提交
12

S
TD-1057  
Shengliang Guan 已提交
13
IF (TD_LINUX)
14
  IF (TD_BUILD_LUA)
15
      TARGET_LINK_LIBRARIES(query m rt ${LINK_LUA})
16 17 18
  ELSE ()
    TARGET_LINK_LIBRARIES(query m rt)
  ENDIF ()
S
TD-1057  
Shengliang Guan 已提交
19
  ADD_SUBDIRECTORY(tests)
H
hjxilinx 已提交
20
ENDIF ()
21 22

IF (TD_DARWIN)
23
  IF (TD_BUILD_LUA)
24
      TARGET_LINK_LIBRARIES(query m ${LINK_LUA})
25 26 27
  ELSE ()
    TARGET_LINK_LIBRARIES(query m)
  ENDIF ()
28 29
  ADD_SUBDIRECTORY(tests)
ENDIF ()