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

SET(CMAKE_C_STANDARD 11)
SET(CMAKE_VERBOSE_MAKEFILE ON)

S
[TD-58]  
slguan 已提交
7 8
SET(TD_CLUSTER FALSE)
SET(TD_ACCOUNT FALSE)
S
[TD-61]  
slguan 已提交
9
SET(TD_GRANT FALSE)
S
[TD-58]  
slguan 已提交
10 11
SET(TD_COVER FALSE)
SET(TD_PAGMODE_LITE FALSE)
L
[#1054]  
lihui 已提交
12
SET(TD_GODLL FALSE)
S
[TD-58]  
slguan 已提交
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
SET(TD_MEM_CHECK FALSE)

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

INCLUDE(cmake/input.inc)
INCLUDE(cmake/platform.inc)
INCLUDE(cmake/env.inc)
INCLUDE(cmake/define.inc)
INCLUDE(cmake/install.inc)

#set output directory
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/build/lib)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/build/bin)
SET(TD_TESTS_OUTPUT_DIR ${PROJECT_BINARY_DIR}/test)

MESSAGE(STATUS "Operating system dependency directory: " ${TD_OS_DIR})
MESSAGE(STATUS "Project source directory: " ${PROJECT_SOURCE_DIR})
MESSAGE(STATUS "Project binary files output path: " ${PROJECT_BINARY_DIR})
MESSAGE(STATUS "Project executable files output path: " ${EXECUTABLE_OUTPUT_PATH})
MESSAGE(STATUS "Project library files output path: " ${LIBRARY_OUTPUT_PATH})
H
hzcheng 已提交
34

S
slguan 已提交
35 36
ADD_SUBDIRECTORY(deps)
ADD_SUBDIRECTORY(src)
37
ADD_SUBDIRECTORY(tests)
H
hzcheng 已提交
38

S
slguan 已提交
39
INCLUDE(CPack)