Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Commit

Permalink
Simplify CMake install configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Feb 11, 2019
1 parent f3f1d61 commit 695676a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR})

include(CMakePackageConfigHelpers)

configure_package_config_file(cmake/config/Config.cmake.in
configure_package_config_file(cmake/template/Config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}Config.cmake
INSTALL_DESTINATION share/${CMAKE_PROJECT_NAME}
PATH_VARS INCLUDE_INSTALL_DIR LIB_INSTALL_DIR)
Expand Down
6 changes: 6 additions & 0 deletions cmake/template/Config.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@PACKAGE_INIT@

find_package(Boost CONFIG REQUIRED system)

include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
check_required_components("@CMAKE_PROJECT_NAME@")

0 comments on commit 695676a

Please sign in to comment.