Skip to content

Commit

Permalink
install into version-specific dirs again
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLartians committed Apr 14, 2020
1 parent 991d397 commit c8fec7d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand All @@ -81,23 +81,23 @@ 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(
FILES
"${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}
)

0 comments on commit c8fec7d

Please sign in to comment.