CMakeLists.txt 836 字节
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 )
8 9
  ADD_EXECUTABLE(subscribe subscribe.c)
  TARGET_LINK_LIBRARIES(subscribe taos_static trpc tutil pthread )
F
freemine 已提交
10 11
  ADD_EXECUTABLE(epoll epoll.c)
  TARGET_LINK_LIBRARIES(epoll taos_static trpc tutil pthread )
S
slguan 已提交
12
ENDIF ()
F
eok  
freemine 已提交
13 14
IF (TD_DARWIN)
  INCLUDE_DIRECTORIES(. ${TD_COMMUNITY_DIR}/src/inc ${TD_COMMUNITY_DIR}/src/client/inc  ${TD_COMMUNITY_DIR}/inc)
15 16 17
  AUX_SOURCE_DIRECTORY(. SRC)
  ADD_EXECUTABLE(demo demo.c)
  TARGET_LINK_LIBRARIES(demo taos_static trpc tutil pthread )
F
eok  
freemine 已提交
18 19 20
  ADD_EXECUTABLE(epoll epoll.c)
  TARGET_LINK_LIBRARIES(epoll taos_static trpc tutil pthread )
ENDIF ()