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

S
TD-1057  
Shengliang Guan 已提交
4 5 6 7
INCLUDE_DIRECTORIES(inc)
AUX_SOURCE_DIRECTORY(src SRC)
  
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 ()