CMakeLists.txt 626 字节
Newer Older
1
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
H
hzcheng 已提交
2 3
PROJECT(TDengine)

S
TD-1057  
Shengliang Guan 已提交
4 5 6 7 8 9 10
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/zlib-1.2.11/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/cJson/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/lz4/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/client/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/query/inc)
INCLUDE_DIRECTORIES(inc)
AUX_SOURCE_DIRECTORY(src SRC)
11

S
TD-2837  
Shengliang Guan 已提交
12 13
ADD_LIBRARY(http ${SRC})
TARGET_LINK_LIBRARIES(http z)
H
Hui Li 已提交
14

S
TD-2837  
Shengliang Guan 已提交
15 16 17 18
IF (TD_SOMODE_STATIC)
  TARGET_LINK_LIBRARIES(http taos_static)
ELSE ()
  TARGET_LINK_LIBRARIES(http taos)
19 20
ENDIF ()

S
TD-2837  
Shengliang Guan 已提交
21 22
IF (TD_ADMIN)
  TARGET_LINK_LIBRARIES(http admin)
S
slguan 已提交
23
ENDIF ()