CMakeLists.txt 833 字节
Newer Older
1
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
陶建辉(Jeff)'s avatar
陶建辉(Jeff) 已提交
2 3
PROJECT(TDengine)

S
TD-1057  
Shengliang Guan 已提交
4 5
INCLUDE_DIRECTORIES(inc)
AUX_SOURCE_DIRECTORY(src SRC)
6

S
TD-1057  
Shengliang Guan 已提交
7
IF (TD_LINUX)
S
Shengliang Guan 已提交
8
  LIST(REMOVE_ITEM SRC src/syncArbitrator.c)
陶建辉(Jeff)'s avatar
陶建辉(Jeff) 已提交
9 10 11
  ADD_LIBRARY(sync ${SRC})
  TARGET_LINK_LIBRARIES(sync tutil pthread common)

S
Shengliang Guan 已提交
12 13
  LIST(APPEND BIN_SRC src/syncArbitrator.c)
  LIST(APPEND BIN_SRC src/syncTcp.c)
陶建辉(Jeff)'s avatar
陶建辉(Jeff) 已提交
14
  ADD_EXECUTABLE(tarbitrator ${BIN_SRC})
S
Shengliang Guan 已提交
15
  TARGET_LINK_LIBRARIES(tarbitrator sync common osdetail tutil)
陶建辉(Jeff)'s avatar
陶建辉(Jeff) 已提交
16

S
#3922  
Shengliang Guan 已提交
17
  #ADD_SUBDIRECTORY(test)
陶建辉(Jeff)'s avatar
陶建辉(Jeff) 已提交
18
ENDIF ()
19 20 21 22 23 24 25 26 27 28 29 30 31

IF (TD_DARWIN)
  LIST(REMOVE_ITEM SRC src/syncArbitrator.c)
  ADD_LIBRARY(sync ${SRC})
  TARGET_LINK_LIBRARIES(sync tutil pthread common)

  LIST(APPEND BIN_SRC src/syncArbitrator.c)
  LIST(APPEND BIN_SRC src/syncTcp.c)
  ADD_EXECUTABLE(tarbitrator ${BIN_SRC})
  TARGET_LINK_LIBRARIES(tarbitrator sync common osdetail tutil)

  #ADD_SUBDIRECTORY(test)
ENDIF ()