CMakeLists.txt 673 字节
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 11 12
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)
  
IF (TD_LINUX)
S
slguan 已提交
13
  ADD_LIBRARY(http ${SRC})
S
TD-1310  
Shengliang Guan 已提交
14
  TARGET_LINK_LIBRARIES(http z)
H
Hui Li 已提交
15 16

  IF (TD_SOMODE_STATIC)
S
TD-1310  
Shengliang Guan 已提交
17
    TARGET_LINK_LIBRARIES(http taos_static)
H
Hui Li 已提交
18
  ELSE ()  
S
TD-1310  
Shengliang Guan 已提交
19
    TARGET_LINK_LIBRARIES(http taos)
H
Hui Li 已提交
20
  ENDIF ()
S
slguan 已提交
21

S
slguan 已提交
22 23
  IF (TD_ADMIN)
    TARGET_LINK_LIBRARIES(http admin)
S
slguan 已提交
24
  ENDIF ()
S
slguan 已提交
25
ENDIF ()