CMakeLists.txt 529 字节
Newer Older
H
Hongze Cheng 已提交
1
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
H
hzcheng 已提交
2 3
PROJECT(TDengine)

L
lihui 已提交
4
IF ((TD_LINUX_64) OR (TD_LINUX_32 AND _TD_ARM_))
S
slguan 已提交
5 6 7 8 9
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/inc)
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/client/inc)
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/zlib-1.2.11/inc)
  INCLUDE_DIRECTORIES(${TD_OS_DIR}/inc)
  INCLUDE_DIRECTORIES(inc)
S
slguan 已提交
10 11 12
  AUX_SOURCE_DIRECTORY(src SRC)
  ADD_LIBRARY(http ${SRC})
  TARGET_LINK_LIBRARIES(http taos_static z)
S
slguan 已提交
13 14 15 16

  IF (TD_CLUSTER)
    TARGET_LINK_LIBRARIES(http http_admin)
  ENDIF ()
S
slguan 已提交
17
ENDIF ()