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

PROJECT(TDengine)

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

IF (TD_LINUX)
  AUX_SOURCE_DIRECTORY(./src SRC)
S
slguan 已提交
9 10 11 12 13
ELSEIF (TD_DARWIN)
  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 已提交
14 15 16 17 18 19 20
ELSEIF (TD_WINDOWS)
  INCLUDE_DIRECTORIES(${TD_ROOT_DIR}/deps/pthread)
  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 已提交
21 22 23

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