Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
cmake_minimum_required (VERSION 3.11) project(crow_test LANGUAGES CXX VERSION 0.0.1 ) add_executable(crow_test) set_property(TARGET crow_test PROPERTY CXX_STANDARD 17) file(GLOB sources src/*.cpp src/*.h) target_sources(crow_test PRIVATE ${sources} ) find_package(Threads REQUIRED) # use static libs for all projects SET(BUILD_SHARED_LIBS OFF CACHE BOOL "Use static libs") # --- Fetch CROW -------------------------------------------------------------- include(FetchContent) set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE) FetchContent_Declare(crow GIT_REPOSITORY https://github.com/CrowCpp/Crow GIT_TAG v1.0 ) FetchContent_GetProperties(crow) if(NOT crow_POPULATED) FetchContent_Populate(crow) add_subdirectory(${crow_SOURCE_DIR} ${crow_BINARY_DIR} EXCLUDE_FROM_ALL) endif() # ------------------------------------------------------------------------------ target_link_libraries(crow_test PRIVATE Crow::Crow ) install(TARGETS crow_test RUNTIME DESTINATION .) install(DIRECTORY static/ DESTINATION static) set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF) set(CPACK_OUTPUT_FILE_PREFIX "") set(CPACK_GENERATOR "ZIP" CACHE STRING "Zip Generator") include(CPack)