CMakeLists.txt 889 字节
Newer Older
H
refact  
Hongze Cheng 已提交
1 2 3 4 5 6 7 8
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)"
)

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

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

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 已提交
20

H
Hongze Cheng 已提交
21 22
# contrib
add_subdirectory(contrib)
H
refact  
Hongze Cheng 已提交
23

H
refact  
Hongze Cheng 已提交
24
# api
H
Hongze Cheng 已提交
25 26
add_library(api INTERFACE)
target_include_directories(api INTERFACE "include/client")
H
refact  
Hongze Cheng 已提交
27

H
refact  
Hongze Cheng 已提交
28
# src
H
more  
Hongze Cheng 已提交
29 30 31 32
if(${BUILD_TEST})
    include(CTest)
    enable_testing()
endif(${BUILD_TEST})
33

H
refact  
Hongze Cheng 已提交
34
add_subdirectory(source)
S
Shengliang Guan 已提交
35
add_subdirectory(tools)
S
Shengliang Guan 已提交
36
add_subdirectory(tests)
L
Liu Jicong 已提交
37
add_subdirectory(example)
H
refact  
Hongze Cheng 已提交
38

H
Hongze Cheng 已提交
39
# docs 
H
Hongze Cheng 已提交
40
add_subdirectory(docs)
H
more  
Hongze Cheng 已提交
41

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