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

12
IF (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
13
  CMAKE_MINIMUM_REQUIRED(VERSION 3.0...3.20)
14
ELSE ()
15
  CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
16 17
ENDIF ()

S
[TD-58]  
slguan 已提交
18
SET(TD_ACCOUNT FALSE)
S
slguan 已提交
19
SET(TD_ADMIN FALSE)
S
[TD-61]  
slguan 已提交
20
SET(TD_GRANT FALSE)
S
TD-1207  
Shengliang Guan 已提交
21
SET(TD_MQTT FALSE)
H
TD-1027  
Hongze Cheng 已提交
22
SET(TD_TSDB_PLUGINS FALSE)
S
TD-1767  
Shengliang Guan 已提交
23
SET(TD_STORAGE FALSE)
S
Shengliang Guan 已提交
24
SET(TD_TOPIC FALSE)
S
TD-3246  
Shengliang Guan 已提交
25
SET(TD_MODULE FALSE)
S
slguan 已提交
26

S
[TD-58]  
slguan 已提交
27
SET(TD_COVER FALSE)
S
slguan 已提交
28 29
SET(TD_MEM_CHECK FALSE)

S
[TD-58]  
slguan 已提交
30
SET(TD_PAGMODE_LITE FALSE)
H
Hui Li 已提交
31
SET(TD_SOMODE_STATIC FALSE)
H
Hui Li 已提交
32
SET(TD_POWER FALSE)
L
[#1054]  
lihui 已提交
33
SET(TD_GODLL FALSE)
S
[TD-58]  
slguan 已提交
34 35 36 37 38 39

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

INCLUDE(cmake/input.inc)
INCLUDE(cmake/platform.inc)
S
TD-1207  
Shengliang Guan 已提交
40

41
IF (TD_WINDOWS OR TD_DARWIN)
S
TD-1207  
Shengliang Guan 已提交
42 43 44
  SET(TD_SOMODE_STATIC TRUE)
ENDIF ()

S
[TD-58]  
slguan 已提交
45
INCLUDE(cmake/define.inc)
S
Shengliang Guan 已提交
46
INCLUDE(cmake/env.inc)
S
Shengliang Guan 已提交
47
INCLUDE(cmake/version.inc)
S
[TD-58]  
slguan 已提交
48 49
INCLUDE(cmake/install.inc)

S
slguan 已提交
50 51
ADD_SUBDIRECTORY(deps)
ADD_SUBDIRECTORY(src)
52
ADD_SUBDIRECTORY(tests)
H
hzcheng 已提交
53

S
slguan 已提交
54
INCLUDE(CPack)