CMakeLists.txt 524 字节
Newer Older
1
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
S
#1177  
slguan 已提交
2 3
PROJECT(TDengine)

S
TD-1207  
Shengliang Guan 已提交
4
IF (TD_LINUX OR TD_WINDOWS)
5
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/query/inc)
S
slguan 已提交
6 7
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/dnode/inc)

S
#1177  
slguan 已提交
8 9
  INCLUDE_DIRECTORIES(inc)
  AUX_SOURCE_DIRECTORY(src SRC)
S
slguan 已提交
10

S
#1177  
slguan 已提交
11
  ADD_LIBRARY(mnode ${SRC})
12 13 14 15 16 17 18 19 20 21 22 23
ENDIF ()

IF (TD_DARWIN)
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/query/inc)
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/dnode/inc)

  INCLUDE_DIRECTORIES(inc)
  AUX_SOURCE_DIRECTORY(src SRC)

  ADD_LIBRARY(mnode ${SRC})
ENDIF ()