From c8fec7d575ef420bde1f333b4f9e8845222649fe Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Tue, 14 Apr 2020 11:10:28 +0200 Subject: [PATCH] install into version-specific dirs again --- CMakeLists.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f51d7d..debba82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,10 +69,10 @@ write_basic_package_version_file( install( TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Targets - LIBRARY DESTINATION lib COMPONENT Runtime - ARCHIVE DESTINATION lib COMPONENT Development - RUNTIME DESTINATION bin COMPONENT Runtime - PUBLIC_HEADER DESTINATION include COMPONENT Development + LIBRARY DESTINATION lib/${PROJECT_NAME}-${PROJECT_VERSION} COMPONENT Runtime + ARCHIVE DESTINATION lib/${PROJECT_NAME}-${PROJECT_VERSION} COMPONENT Development + RUNTIME DESTINATION bin/${PROJECT_NAME}-${PROJECT_VERSION} COMPONENT Runtime + PUBLIC_HEADER DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION} COMPONENT Development BUNDLE DESTINATION bin COMPONENT Runtime ) @@ -81,12 +81,12 @@ include(CMakePackageConfigHelpers) configure_package_config_file( "${PROJECT_SOURCE_DIR}/cmake/Config.cmake.in" "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" - INSTALL_DESTINATION lib/cmake + INSTALL_DESTINATION lib/cmake/${PROJECT_NAME}-${PROJECT_VERSION} ) install( EXPORT ${PROJECT_NAME}Targets - DESTINATION lib/cmake + DESTINATION lib/cmake/${PROJECT_NAME}-${PROJECT_VERSION} ) install( @@ -94,10 +94,10 @@ install( "${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake" "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" DESTINATION - lib/cmake + lib/cmake/${PROJECT_NAME}-${PROJECT_VERSION} ) install( DIRECTORY ${PROJECT_SOURCE_DIR}/include/ - DESTINATION include + DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION} )