CMakeLists.txt 543 字节
Newer Older
1
CMAKE_MINIMUM_REQUIRED(VERSION 2.8...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)
Y
yihaoDeng 已提交
11
TARGET_LINK_LIBRARIES(query tsdb tutil lua)
S
TD-1057  
Shengliang Guan 已提交
12

S
TD-1057  
Shengliang Guan 已提交
13
IF (TD_LINUX)
Y
yihaoDeng 已提交
14
  TARGET_LINK_LIBRARIES(query m rt lua)
S
TD-1057  
Shengliang Guan 已提交
15
  ADD_SUBDIRECTORY(tests)
H
hjxilinx 已提交
16
ENDIF ()
17 18

IF (TD_DARWIN)
Y
yihaoDeng 已提交
19
  TARGET_LINK_LIBRARIES(query m lua)
20 21
  ADD_SUBDIRECTORY(tests)
ENDIF ()