diff options
author | Aki <please@ignore.pl> | 2021-10-15 23:12:41 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-10-15 23:12:41 +0200 |
commit | 08c67e6be1c2ca4d0f72cfceb95241d042b3d078 (patch) | |
tree | f688ec45f981b0b79f25cdf2596007f1c1d5778e /library/CMakeLists.txt | |
parent | 17a6f793b482ce3e475c9d5e57030a7ed7ae0588 (diff) | |
download | hwd-08c67e6be1c2ca4d0f72cfceb95241d042b3d078.zip hwd-08c67e6be1c2ca4d0f72cfceb95241d042b3d078.tar.gz hwd-08c67e6be1c2ca4d0f72cfceb95241d042b3d078.tar.bz2 |
Added package config file to cmake installation
Diffstat (limited to 'library/CMakeLists.txt')
-rw-r--r-- | library/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index a1e146b..6eaac8f 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -14,6 +14,11 @@ target_include_directories(${PROJECT_NAME} set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME hwd ) +configure_package_config_file( + cmake/Config.cmake.in + ${CMAKE_CURRENT_BINARY_DIR}/HwdConfig.cmake + INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Hwd + ) install(TARGETS ${PROJECT_NAME} EXPORT HwdTargets RUNTIME @@ -27,3 +32,7 @@ install(EXPORT HwdTargets NAMESPACE Hwd:: DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Hwd ) +install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/HwdConfig.cmake + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Hwd + ) |