CMAKE_MINIMUM_REQUIRED(VERSION 2.8...3.20)
PROJECT(TDengine)

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

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 ()
