diff --git a/cpr/CMakeLists.txt b/cpr/CMakeLists.txt index d43fc1d..d6a3992 100644 --- a/cpr/CMakeLists.txt +++ b/cpr/CMakeLists.txt @@ -29,6 +29,10 @@ set_target_properties(cpr PROPERTIES VERSION ${${PROJECT_NAME}_VERSION} SOVERSION ${${PROJECT_NAME}_VERSION_MAJOR}) + +if (NOT DISABLE_INSTALL_HEADERS) + install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../include/cpr DESTINATION include) +endif() # Import GNU common install directory variables include(GNUInstallDirs) @@ -37,6 +41,7 @@ if(CPR_FORCE_USE_SYSTEM_CURL) install(TARGETS cpr EXPORT cprTargets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) # Include CMake helpers for package config files