Skip to content

Commit

Permalink
moved config file to cmake dir
Browse files Browse the repository at this point in the history
  • Loading branch information
bernedom committed Apr 6, 2019
1 parent 3633d45 commit 4dc3489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ INCLUDES DESTINATION include
)

include(CMakePackageConfigHelpers)
write_basic_package_version_file("SIConfigVersion.cmake"
write_basic_package_version_file("${PROJECT_NAME}ConfigVersion.cmake"
VERSION 1.0.0
COMPATIBILITY SameMajorVersion)

configure_package_config_file(
"${PROJECT_SOURCE_DIR}/SIConfig.cmake.in"
"${PROJECT_BINARY_DIR}/SIConfig.cmake"
"${PROJECT_SOURCE_DIR}/cmake/SIConfig.cmake.in"
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
INSTALL_DESTINATION lib/cmake/${PROJECT_NAME}
)

Expand All @@ -39,7 +39,7 @@ install(EXPORT SI_Targets
DESTINATION lib/cmake/${PROJECT_NAME}
)

install(FILES "${PROJECT_BINARY_DIR}/SIConfig.cmake" "${PROJECT_BINARY_DIR}/SIConfigVersion.cmake"
install(FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" "${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
DESTINATION lib/cmake/${PROJECT_NAME})

install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/SI DESTINATION include)
File renamed without changes.

0 comments on commit 4dc3489

Please sign in to comment.