1234567891011121314151617181920212223242526 |
- 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)
- find_package(sole REQUIRED)
- add_library(tsdb src/tsdb.cpp src/tsdb_hf.cpp src/shared.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)
- target_link_libraries(tsdb PRIVATE sole::sole)
- install(TARGETS tsdb)
|