CMakeLists.txt 1016 字节
Newer Older
H
hzcheng 已提交
1 2
PROJECT(TDengine)

3 4 5 6 7 8
IF (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  CMAKE_MINIMUM_REQUIRED(VERSION 2.8...3.20)
ELSE ()
  CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
ENDIF ()

H
hzcheng 已提交
9
ADD_SUBDIRECTORY(zlib-1.2.11)
S
slguan 已提交
10 11 12
ADD_SUBDIRECTORY(pthread)
ADD_SUBDIRECTORY(regex)
ADD_SUBDIRECTORY(iconv)
S
slguan 已提交
13 14
ADD_SUBDIRECTORY(lz4)
ADD_SUBDIRECTORY(cJson)
S
TD-1057  
Shengliang Guan 已提交
15
ADD_SUBDIRECTORY(wepoll)
S
Shengliang Guan 已提交
16
ADD_SUBDIRECTORY(MsvcLibX)
17
ADD_SUBDIRECTORY(rmonotonic)
S
slguan 已提交
18

19
ADD_SUBDIRECTORY(lua)
20

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

IF (TD_DARWIN AND TD_MQTT)
  ADD_SUBDIRECTORY(MQTT-C)
ENDIF ()
28 29

IF (TD_LINUX_64 AND JEMALLOC_ENABLED)
30
  MESSAGE("setup deps/jemalloc, current source dir:" ${CMAKE_CURRENT_SOURCE_DIR})
31 32 33 34 35 36 37 38 39 40
  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 ()