CMakeLists.txt 479 字节
Newer Older
H
Hongze Cheng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
CMAKE_MINIMUM_REQUIRED(VERSION 3.0...3.20)
PROJECT(TDengine)

INCLUDE_DIRECTORIES(inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/query/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/cJson/inc)
AUX_SOURCE_DIRECTORY(src SRC)
ADD_LIBRARY(tsdb ${SRC})
TARGET_LINK_LIBRARIES(tsdb tfs common tutil cJson)

IF (TD_TSDB_PLUGINS)
  TARGET_LINK_LIBRARIES(tsdb tsdbPlugins)
ENDIF ()

IF (TD_LINUX)
  # Someone has no gtest directory, so comment it
  # ADD_SUBDIRECTORY(tests)
ENDIF ()