CMakeLists.txt 1.1 KB
Newer Older
H
Hongze Cheng 已提交
1
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
H
hzcheng 已提交
2 3
PROJECT(TDengine)

S
slguan 已提交
4 5 6 7
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/client/inc)
INCLUDE_DIRECTORIES(${TD_OS_DIR}/inc)
INCLUDE_DIRECTORIES(inc)
S
slguan 已提交
8

L
lihui 已提交
9
IF ((TD_LINUX_64) OR (TD_LINUX_32 AND _TD_ARM_))
S
slguan 已提交
10 11 12 13
  AUX_SOURCE_DIRECTORY(./src SRC)
  LIST(REMOVE_ITEM SRC ./src/shellWindows.c)
  ADD_EXECUTABLE(shell ${SRC})  
  TARGET_LINK_LIBRARIES(shell taos_static)
S
slguan 已提交
14 15 16 17
  SET_TARGET_PROPERTIES(shell PROPERTIES OUTPUT_NAME taos)
ELSEIF (TD_WINDOWS_64)
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/pthread)
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/regex)
S
slguan 已提交
18 19 20
  LIST(APPEND SRC ./src/shellEngine.c)
  LIST(APPEND SRC ./src/shellMain.c)
  LIST(APPEND SRC ./src/shellWindows.c)
S
slguan 已提交
21
  ADD_EXECUTABLE(shell ${SRC})
S
slguan 已提交
22
  TARGET_LINK_LIBRARIES(shell taos_static)
S
slguan 已提交
23 24
  SET_TARGET_PROPERTIES(shell PROPERTIES OUTPUT_NAME taos)
ELSEIF (TD_DARWIN_64)
S
slguan 已提交
25 26 27 28 29
  LIST(APPEND SRC ./src/shellEngine.c)
  LIST(APPEND SRC ./src/shellMain.c)
  LIST(APPEND SRC ./src/shellWindows.c)
  ADD_EXECUTABLE(shell ${SRC})
  TARGET_LINK_LIBRARIES(shell taos_static)
S
slguan 已提交
30
  SET_TARGET_PROPERTIES(shell PROPERTIES OUTPUT_NAME taos)
S
slguan 已提交
31
ENDIF ()
H
hzcheng 已提交
32