CMakeLists.txt 863 字节
Newer Older
H
refact  
Hongze Cheng 已提交
1 2 3 4 5 6 7 8 9
cmake_minimum_required(VERSION 3.16)

project(
    TDengine
    VERSION 3.0
    DESCRIPTION "An open-source big data platform designed and optimized for the Internet of Things(IOT)"
)

set(CMAKE_SUPPORT_DIR "${CMAKE_SOURCE_DIR}/cmake")
H
Hongze Cheng 已提交
10
set(CMAKE_CONTRIB_DIR "${CMAKE_SOURCE_DIR}/contrib")
H
refact  
Hongze Cheng 已提交
11
include(${CMAKE_SUPPORT_DIR}/cmake.options)
H
refact  
Hongze Cheng 已提交
12

S
Shengliang Guan 已提交
13 14
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -fPIC -gdwarf-2 -msse4.2 -mfma -g3")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -fPIC -gdwarf-2 -msse4.2 -mfma -g3")
S
Shengliang Guan 已提交
15

H
Hongze Cheng 已提交
16 17
# contrib
add_subdirectory(contrib)
H
refact  
Hongze Cheng 已提交
18

H
refact  
Hongze Cheng 已提交
19
# api
H
Hongze Cheng 已提交
20 21
add_library(api INTERFACE)
target_include_directories(api INTERFACE "include/client")
H
refact  
Hongze Cheng 已提交
22

H
refact  
Hongze Cheng 已提交
23
# src
H
more  
Hongze Cheng 已提交
24 25 26 27
if(${BUILD_TEST})
    include(CTest)
    enable_testing()
endif(${BUILD_TEST})
H
refact  
Hongze Cheng 已提交
28
add_subdirectory(source)
S
Shengliang Guan 已提交
29
add_subdirectory(tools)
L
Liu Jicong 已提交
30
add_subdirectory(tests)
L
Liu Jicong 已提交
31
add_subdirectory(example)
H
refact  
Hongze Cheng 已提交
32

H
Hongze Cheng 已提交
33
# docs 
H
Hongze Cheng 已提交
34
add_subdirectory(docs)
H
more  
Hongze Cheng 已提交
35

S
Shengliang Guan 已提交
36
# tests (TODO)