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

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