CMakeLists.txt 729 字节
Newer Older
S
slguan 已提交
1 2
PROJECT(TDengine)

S
TD-1057  
Shengliang Guan 已提交
3 4 5
IF (TD_LINUX)
  INCLUDE_DIRECTORIES(. ${TD_COMMUNITY_DIR}/src/inc ${TD_COMMUNITY_DIR}/src/client/inc  ${TD_COMMUNITY_DIR}/inc)
  AUX_SOURCE_DIRECTORY(. SRC)
H
Haojun Liao 已提交
6
  ADD_EXECUTABLE(demo apitest.c)
S
TD-1057  
Shengliang Guan 已提交
7
  TARGET_LINK_LIBRARIES(demo taos_static trpc tutil pthread )
F
freemine 已提交
8 9
  ADD_EXECUTABLE(epoll epoll.c)
  TARGET_LINK_LIBRARIES(epoll taos_static trpc tutil pthread )
S
slguan 已提交
10
ENDIF ()
F
eok  
freemine 已提交
11 12
IF (TD_DARWIN)
  INCLUDE_DIRECTORIES(. ${TD_COMMUNITY_DIR}/src/inc ${TD_COMMUNITY_DIR}/src/client/inc  ${TD_COMMUNITY_DIR}/inc)
13 14 15
  AUX_SOURCE_DIRECTORY(. SRC)
  ADD_EXECUTABLE(demo demo.c)
  TARGET_LINK_LIBRARIES(demo taos_static trpc tutil pthread )
F
eok  
freemine 已提交
16 17 18
  ADD_EXECUTABLE(epoll epoll.c)
  TARGET_LINK_LIBRARIES(epoll taos_static trpc tutil pthread )
ENDIF ()