CMakeLists.txt 946 字节
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-1057  
Shengliang Guan 已提交
12
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)
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
  ELSE ()
    TARGET_LINK_LIBRARIES(http taos)
  ENDIF ()

  IF (TD_ADMIN)
    TARGET_LINK_LIBRARIES(http admin)
  ENDIF ()
ENDIF ()

IF (TD_DARWIN)
  ADD_LIBRARY(http ${SRC})
  TARGET_LINK_LIBRARIES(http z)

  IF (TD_SOMODE_STATIC)
    TARGET_LINK_LIBRARIES(http taos_static)
  ELSE ()
S
TD-1310  
Shengliang Guan 已提交
34
    TARGET_LINK_LIBRARIES(http taos)
H
Hui Li 已提交
35
  ENDIF ()
S
slguan 已提交
36

S
slguan 已提交
37 38
  IF (TD_ADMIN)
    TARGET_LINK_LIBRARIES(http admin)
S
slguan 已提交
39
  ENDIF ()
S
slguan 已提交
40
ENDIF ()