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

S
slguan 已提交
4
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/inc)
S
Shengliang Guan 已提交
5
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/os/inc)
S
slguan 已提交
6
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/util/inc)
S
slguan 已提交
7
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/common/inc)
S
slguan 已提交
8 9
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/cJson/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/lz4/inc)
S
slguan 已提交
10
INCLUDE_DIRECTORIES(inc)
S
slguan 已提交
11

L
lihui 已提交
12
IF ((TD_LINUX_64) OR (TD_LINUX_32 AND TD_ARM))
S
slguan 已提交
13
  AUX_SOURCE_DIRECTORY(./src SRC)
S
slguan 已提交
14
ELSEIF (TD_DARWIN_64)
S
Shengliang Guan 已提交
15 16 17 18 19
  #LIST(APPEND SRC ./src/thaship.c)
  #LIST(APPEND SRC ./src/trpc.c)
  #LIST(APPEND SRC ./src/tstring.c)
  #LIST(APPEND SRC ./src/tudp.c)
  AUX_SOURCE_DIRECTORY(src SRC)
S
slguan 已提交
20 21
ELSEIF (TD_WINDOWS_64)
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/pthread)
S
slguan 已提交
22 23 24 25 26
  LIST(APPEND SRC ./src/thaship.c)
  LIST(APPEND SRC ./src/trpc.c)
  LIST(APPEND SRC ./src/tstring.c)
  LIST(APPEND SRC ./src/tudp.c)
ENDIF ()
H
hzcheng 已提交
27 28

ADD_LIBRARY(trpc ${SRC})
S
slguan 已提交
29
TARGET_LINK_LIBRARIES(trpc tutil lz4 common)
S
slguan 已提交
30 31 32

ADD_SUBDIRECTORY(test)