CMakeLists.txt 890 字节
Newer Older
H
Hongze Cheng 已提交
1
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
S
slguan 已提交
2 3 4 5 6 7 8 9 10 11
IF (CMAKE_VERSION VERSION_LESS 3.0)
  PROJECT(TDengine CXX)
  SET(PROJECT_VERSION_MAJOR "${LIB_MAJOR_VERSION}")
  SET(PROJECT_VERSION_MINOR "${LIB_MINOR_VERSION}")
  SET(PROJECT_VERSION_PATCH"${LIB_PATCH_VERSION}")
  SET(PROJECT_VERSION "${LIB_VERSION_STRING}")
ELSE ()
  CMAKE_POLICY(SET CMP0048 NEW)
  PROJECT(TDengine VERSION "${LIB_VERSION_STRING}" LANGUAGES CXX)
ENDIF ()
H
hzcheng 已提交
12

S
[TD-58]  
slguan 已提交
13
SET(TD_ACCOUNT FALSE)
S
slguan 已提交
14
SET(TD_ADMIN FALSE)
S
[TD-61]  
slguan 已提交
15
SET(TD_GRANT FALSE)
S
slguan 已提交
16

S
[TD-58]  
slguan 已提交
17
SET(TD_COVER FALSE)
S
slguan 已提交
18 19
SET(TD_MEM_CHECK FALSE)

S
[TD-58]  
slguan 已提交
20
SET(TD_PAGMODE_LITE FALSE)
L
[#1054]  
lihui 已提交
21
SET(TD_GODLL FALSE)
S
[TD-58]  
slguan 已提交
22 23 24 25 26 27 28

SET(TD_COMMUNITY_DIR ${PROJECT_SOURCE_DIR})
MESSAGE(STATUS "Community directory: " ${TD_COMMUNITY_DIR})

INCLUDE(cmake/input.inc)
INCLUDE(cmake/platform.inc)
INCLUDE(cmake/define.inc)
S
Shengliang Guan 已提交
29
INCLUDE(cmake/env.inc)
S
[TD-58]  
slguan 已提交
30 31
INCLUDE(cmake/install.inc)

S
slguan 已提交
32 33
ADD_SUBDIRECTORY(deps)
ADD_SUBDIRECTORY(src)
34
ADD_SUBDIRECTORY(tests)
H
hzcheng 已提交
35

S
slguan 已提交
36
INCLUDE(CPack)