CMakeLists.txt 1.0 KB
Newer Older
1
cmake_minimum_required(VERSION 3.0)
H
refact  
Hongze Cheng 已提交
2 3 4 5 6 7 8

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

wafwerar's avatar
wafwerar 已提交
9
if (NOT DEFINED TD_SOURCE_DIR)
wafwerar's avatar
wafwerar 已提交
10
  set( TD_SOURCE_DIR ${PROJECT_SOURCE_DIR} )
wafwerar's avatar
wafwerar 已提交
11
endif()
12

13 14
SET(TD_COMMUNITY_DIR ${PROJECT_SOURCE_DIR})

wafwerar's avatar
wafwerar 已提交
15 16 17
set(TD_SUPPORT_DIR "${TD_SOURCE_DIR}/cmake")
set(TD_CONTRIB_DIR "${TD_SOURCE_DIR}/contrib")

Y
yihaoDeng 已提交
18 19 20



wafwerar's avatar
wafwerar 已提交
21 22 23 24
include(${TD_SUPPORT_DIR}/cmake.platform)
include(${TD_SUPPORT_DIR}/cmake.define)
include(${TD_SUPPORT_DIR}/cmake.options)
include(${TD_SUPPORT_DIR}/cmake.version)
H
refact  
Hongze Cheng 已提交
25

Y
yihaoDeng 已提交
26

H
Hongze Cheng 已提交
27 28
# contrib
add_subdirectory(contrib)
H
refact  
Hongze Cheng 已提交
29

H
Hongze Cheng 已提交
30 31
set_property(GLOBAL PROPERTY GLOBAL_DEPENDS_NO_CYCLES OFF)

H
refact  
Hongze Cheng 已提交
32
# api
H
Hongze Cheng 已提交
33 34
add_library(api INTERFACE)
target_include_directories(api INTERFACE "include/client")
H
refact  
Hongze Cheng 已提交
35

H
refact  
Hongze Cheng 已提交
36
# src
H
more  
Hongze Cheng 已提交
37 38 39 40
if(${BUILD_TEST})
    include(CTest)
    enable_testing()
endif(${BUILD_TEST})
41

H
refact  
Hongze Cheng 已提交
42
add_subdirectory(source)
S
Shengliang Guan 已提交
43
add_subdirectory(tools)
44
add_subdirectory(utils)
45
add_subdirectory(examples/c)
H
Hongze Cheng 已提交
46
include(${TD_SUPPORT_DIR}/cmake.install)
H
refact  
Hongze Cheng 已提交
47

H
Hongze Cheng 已提交
48
# docs 
H
Hongze Cheng 已提交
49
add_subdirectory(docs/doxgen)