CMakeLists.txt 479 字节
Newer Older
1
CMAKE_MINIMUM_REQUIRED(VERSION 3.0...3.20)
S
slguan 已提交
2
PROJECT(TDengine)
H
more  
hzcheng 已提交
3

S
TD-1057  
Shengliang Guan 已提交
4
INCLUDE_DIRECTORIES(inc)
W
wpan 已提交
5
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/query/inc)
wmmhello's avatar
wmmhello 已提交
6
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/cJson/inc)
S
TD-1057  
Shengliang Guan 已提交
7
AUX_SOURCE_DIRECTORY(src SRC)
S
TD-1310  
Shengliang Guan 已提交
8
ADD_LIBRARY(tsdb ${SRC})
wmmhello's avatar
wmmhello 已提交
9
TARGET_LINK_LIBRARIES(tsdb tfs common tutil cJson)
H
hzcheng 已提交
10

11 12 13 14
IF (TD_TSDB_PLUGINS)
  TARGET_LINK_LIBRARIES(tsdb tsdbPlugins)
ENDIF ()

S
TD-1057  
Shengliang Guan 已提交
15
IF (TD_LINUX)
S
slguan 已提交
16
  # Someone has no gtest directory, so comment it
17
  # ADD_SUBDIRECTORY(tests)
S
slguan 已提交
18
ENDIF ()