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

S
slguan 已提交
4
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/inc)
S
Shengliang Guan 已提交
5
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/os/inc)
S
slguan 已提交
6
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/util/inc)
S
slguan 已提交
7
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/client/inc)
8
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/query/inc)
S
slguan 已提交
9
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/common/inc)
S
slguan 已提交
10
INCLUDE_DIRECTORIES(inc)
S
slguan 已提交
11

L
lihui 已提交
12
IF ((TD_LINUX_64) OR (TD_LINUX_32 AND TD_ARM))
S
slguan 已提交
13 14
  AUX_SOURCE_DIRECTORY(./src SRC)
  LIST(REMOVE_ITEM SRC ./src/shellWindows.c)
S
slguan 已提交
15
  LIST(REMOVE_ITEM SRC ./src/shellDarwin.c)
S
slguan 已提交
16
  ADD_EXECUTABLE(shell ${SRC})  
L
lihui 已提交
17
  
H
Hui Li 已提交
18
#  IF (TD_PAGMODE_LITE)
L
lihui 已提交
19
    TARGET_LINK_LIBRARIES(shell taos)
H
Hui Li 已提交
20 21 22
#  ELSE ()
#    TARGET_LINK_LIBRARIES(shell taos_static)
#  ENDIF ()
L
lihui 已提交
23
  
S
slguan 已提交
24 25 26 27
  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 已提交
28 29 30
  LIST(APPEND SRC ./src/shellEngine.c)
  LIST(APPEND SRC ./src/shellMain.c)
  LIST(APPEND SRC ./src/shellWindows.c)
S
slguan 已提交
31
  ADD_EXECUTABLE(shell ${SRC})
S
slguan 已提交
32
  TARGET_LINK_LIBRARIES(shell taos_static)
S
slguan 已提交
33 34
  SET_TARGET_PROPERTIES(shell PROPERTIES OUTPUT_NAME taos)
ELSEIF (TD_DARWIN_64)
S
slguan 已提交
35 36
  LIST(APPEND SRC ./src/shellEngine.c)
  LIST(APPEND SRC ./src/shellMain.c)
S
slguan 已提交
37 38 39
  LIST(APPEND SRC ./src/shellDarwin.c)
  LIST(APPEND SRC ./src/shellCommand.c)
  LIST(APPEND SRC ./src/shellImport.c)
S
slguan 已提交
40 41
  ADD_EXECUTABLE(shell ${SRC})
  TARGET_LINK_LIBRARIES(shell taos_static)
S
slguan 已提交
42
  SET_TARGET_PROPERTIES(shell PROPERTIES OUTPUT_NAME taos)
S
slguan 已提交
43
ENDIF ()
H
hzcheng 已提交
44