123456789101112131415161718192021222324 |
- cmake_minimum_required(VERSION 3.15)
- project(tsdb CXX)
- set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
- find_package(clickhouse-cpp REQUIRED)
- find_package(spdlog REQUIRED)
- find_package(yaml-cpp REQUIRED)
- find_package(nlohmann_json REQUIRED)
- find_package(fmt REQUIRED)
- find_package(zstd REQUIRED)
- add_library(tsdb src/tsdb.cpp src/tsdb_hf.cpp)
- target_include_directories(tsdb PUBLIC include)
- set_target_properties(tsdb PROPERTIES PUBLIC_HEADER "include/tsdb.h;include/tsdb_hf.h")
- target_link_libraries(tsdb PRIVATE clickhouse-cpp-lib::clickhouse-cpp-lib)
- target_link_libraries(tsdb PRIVATE spdlog::spdlog)
- target_link_libraries(tsdb PRIVATE yaml-cpp::yaml-cpp)
- target_link_libraries(tsdb PRIVATE nlohmann_json::nlohmann_json)
- target_link_libraries(tsdb PRIVATE fmt::fmt)
- target_link_libraries(tsdb PRIVATE zstd::libzstd_static)
- install(TARGETS tsdb)
|