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

S
slguan 已提交
4 5 6
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/inc)
INCLUDE_DIRECTORIES(${TD_OS_DIR}/inc)
INCLUDE_DIRECTORIES(inc)
S
slguan 已提交
7

S
slguan 已提交
8
IF (TD_LINUX_64)
S
slguan 已提交
9
  AUX_SOURCE_DIRECTORY(./src SRC)
S
slguan 已提交
10
ELSEIF (TD_DARWIN_64)
S
slguan 已提交
11 12 13 14
  LIST(APPEND SRC ./src/thaship.c)
  LIST(APPEND SRC ./src/trpc.c)
  LIST(APPEND SRC ./src/tstring.c)
  LIST(APPEND SRC ./src/tudp.c)
S
slguan 已提交
15 16
ELSEIF (TD_WINDOWS_64)
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/pthread)
S
slguan 已提交
17 18 19 20 21
  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 已提交
22 23 24

ADD_LIBRARY(trpc ${SRC})
TARGET_LINK_LIBRARIES(trpc tutil)