mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-09-09 08:12:52 +02:00
Muuuuch easier to use external dependencies now Also tried out conan and vcpkg. Ran into dependency issues when solving for packages to install with conan. vcpkg is just obtuse as all hell to install and not easy to integrate
20 lines
812 B
CMake
20 lines
812 B
CMake
project(prometheus-cpp-lite-core)
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
file(GLOB_RECURSE PROMETHEUS_CPP_LITE_HEADERS *.h)
|
|
|
|
# it is header only target
|
|
|
|
add_library (${PROJECT_NAME} INTERFACE)
|
|
target_sources (${PROJECT_NAME} INTERFACE ${PROMETHEUS_CPP_LITE_HEADERS})
|
|
target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
add_custom_target (${PROJECT_NAME}-ide SOURCES ${PROMETHEUS_CPP_LITE_HEADERS})
|
|
target_link_libraries (${PROJECT_NAME} INTERFACE http-client-lite)
|
|
|
|
set (${PROJECT_NAME}_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
|
|
|
|
# it need for save_to_file_t
|
|
if(NOT WIN32)
|
|
find_package(Threads)
|
|
target_link_libraries(${PROJECT_NAME} INTERFACE ${CMAKE_THREAD_LIBS_INIT})
|
|
endif()
|