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

S
TD-1057  
Shengliang Guan 已提交
4 5 6 7
INCLUDE_DIRECTORIES(inc)
AUX_SOURCE_DIRECTORY(src SRC)
  
IF (TD_LINUX)
陶建辉(Jeff)'s avatar
陶建辉(Jeff) 已提交
8 9 10 11 12 13 14
  LIST(REMOVE_ITEM SRC ./src/tarbitrator.c)
  ADD_LIBRARY(sync ${SRC})
  TARGET_LINK_LIBRARIES(sync tutil pthread common)

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

  ADD_SUBDIRECTORY(test)
ENDIF ()