CMakeLists.txt 923 字节
Newer Older
1 2 3
PROJECT(TDengine)

IF (TD_LINUX)
wafwerar's avatar
wafwerar 已提交
4
  INCLUDE_DIRECTORIES(. ${TD_SOURCE_DIR}/src/inc ${TD_SOURCE_DIR}/src/client/inc  ${TD_SOURCE_DIR}/inc)
5 6 7 8 9 10 11 12 13 14 15
  AUX_SOURCE_DIRECTORY(. SRC)
  ADD_EXECUTABLE(demo apitest.c)
  TARGET_LINK_LIBRARIES(demo taos_static trpc tutil pthread )
  ADD_EXECUTABLE(sml schemaless.c)
  TARGET_LINK_LIBRARIES(sml taos_static trpc tutil pthread )
  ADD_EXECUTABLE(subscribe subscribe.c)
  TARGET_LINK_LIBRARIES(subscribe taos_static trpc tutil pthread )
  ADD_EXECUTABLE(epoll epoll.c)
  TARGET_LINK_LIBRARIES(epoll taos_static trpc tutil pthread lua)
ENDIF ()
IF (TD_DARWIN)
wafwerar's avatar
wafwerar 已提交
16
  INCLUDE_DIRECTORIES(. ${TD_SOURCE_DIR}/src/inc ${TD_SOURCE_DIR}/src/client/inc  ${TD_SOURCE_DIR}/inc)
17 18 19 20 21 22
  AUX_SOURCE_DIRECTORY(. SRC)
  ADD_EXECUTABLE(demo demo.c)
  TARGET_LINK_LIBRARIES(demo taos_static trpc tutil pthread lua)
  ADD_EXECUTABLE(epoll epoll.c)
  TARGET_LINK_LIBRARIES(epoll taos_static trpc tutil pthread lua)
ENDIF ()