File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,24 @@ add_subdirectory(include/beman/optional26)
59
59
60
60
add_subdirectory (examples)
61
61
62
+
63
+ include (CMakePackageConfigHelpers)
64
+
65
+ # This will be used to replace @PACKAGE_cmakeModulesDir@
66
+ set (cmakeModulesDir cmake/beman)
67
+ configure_package_config_file(
68
+ cmake/Config.cmake.in BemanOptional26Config.cmake
69
+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/beman/optional26/
70
+ PATH_VARS cmakeModulesDir
71
+ NO_SET_AND_CHECK_MACRO
72
+ NO_CHECK_REQUIRED_COMPONENTS_MACRO
73
+ )
74
+
75
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR} /BemanOptional26Config.cmake
76
+ DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/beman/optional26/
77
+ COMPONENT beman_optional26_development
78
+ )
79
+
62
80
# Coverage
63
81
configure_file ("cmake/gcovr.cfg.in" gcovr.cfg @ONLY)
64
82
Original file line number Diff line number Diff line change 1
- # cmake/Config.cmake.in -*-makefile -*-
1
+ # cmake/Config.cmake.in -*-cmake -*-
2
2
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3
3
4
4
@PACKAGE_INIT@
You can’t perform that action at this time.
0 commit comments