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