CMakeLists.txt 936 字节
Newer Older
S
Shengliang Guan 已提交
1
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
H
hzcheng 已提交
2 3 4
PROJECT(TDengine)

ADD_SUBDIRECTORY(zlib-1.2.11)
S
slguan 已提交
5 6 7
ADD_SUBDIRECTORY(pthread)
ADD_SUBDIRECTORY(regex)
ADD_SUBDIRECTORY(iconv)
S
slguan 已提交
8 9
ADD_SUBDIRECTORY(lz4)
ADD_SUBDIRECTORY(cJson)
S
TD-1057  
Shengliang Guan 已提交
10
ADD_SUBDIRECTORY(wepoll)
S
Shengliang Guan 已提交
11
ADD_SUBDIRECTORY(MsvcLibX)
12
ADD_SUBDIRECTORY(rmonotonic)
S
slguan 已提交
13

14 15 16 17
IF (TD_LINUX_64)
  ADD_SUBDIRECTORY(lua)
ENDIF ()

S
TD-1310  
Shengliang Guan 已提交
18
IF (TD_LINUX AND TD_MQTT)
S
slguan 已提交
19
  ADD_SUBDIRECTORY(MQTT-C)
20 21 22 23 24
ENDIF ()

IF (TD_DARWIN AND TD_MQTT)
  ADD_SUBDIRECTORY(MQTT-C)
ENDIF ()
25 26

IF (TD_LINUX_64 AND JEMALLOC_ENABLED)
27
  MESSAGE("setup deps/jemalloc, current source dir:" ${CMAKE_CURRENT_SOURCE_DIR})
28 29 30 31 32 33 34 35 36 37
  MESSAGE("binary dir:" ${CMAKE_BINARY_DIR})
  include(ExternalProject)
  ExternalProject_Add(jemalloc
    PREFIX        "jemalloc"
    SOURCE_DIR    ${CMAKE_CURRENT_SOURCE_DIR}/jemalloc
    BUILD_IN_SOURCE     1
    CONFIGURE_COMMAND   ./autogen.sh COMMAND ./configure --prefix=${CMAKE_BINARY_DIR}/build/
    BUILD_COMMAND       ${MAKE}
  )
ENDIF ()