CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(TDengine) INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/util/inc) INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/os/inc) INCLUDE_DIRECTORIES(inc) IF (TD_LINUX) AUX_SOURCE_DIRECTORY(. SRC) ADD_EXECUTABLE(taospack ${SRC})
TARGET_LINK_LIBRARIES(taospack os tutil tsdb ${VAR_TSZ})
ELSEIF (TD_WINDOWS) AUX_SOURCE_DIRECTORY(. SRC) ADD_EXECUTABLE(taospack ${SRC}) TARGET_LINK_LIBRARIES(taospack) ELSEIF (TD_DARWIN) # MAC AUX_SOURCE_DIRECTORY(. SRC) ADD_EXECUTABLE(taospack ${SRC}) TARGET_LINK_LIBRARIES(taospack os tutil tsdb) ENDIF ()