diff --git a/CMakeLists.txt b/CMakeLists.txt index 17d0ba4..2404a92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,7 @@ project(prometheus-cpp-lite) + +include(GNUInstallDirs) + cmake_minimum_required(VERSION 3.2) option(PROMETHEUS_BUILD_EXAMPLES "Build with examples" OFF) diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 3efae99..fb0223f 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -18,3 +18,6 @@ if(NOT WIN32) find_package(Threads) target_link_libraries(${PROJECT_NAME} INTERFACE ${CMAKE_THREAD_LIBS_INIT}) endif() + +install (TARGETS ${PROJECT_NAME}) +install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) \ No newline at end of file