diff options
author | Steve Youngs <steve@sxemacs.org> | 2021-06-13 16:02:25 +1000 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-07-08 15:00:13 +0300 |
commit | e2ddc434f0cfae00e72a8362a73085e6cf9e1570 (patch) | |
tree | 44c81ce4c6861319bd2a00104ba0ebfd583e3276 /Config.cmake.in | |
parent | 5d22c15f62e211e49dc0e3eaacd617ec8160e261 (diff) | |
download | bdwgc-e2ddc434f0cfae00e72a8362a73085e6cf9e1570.tar.gz |
Export CMake targets with namespace BDWgc
Issue #327 (bdwgc).
Create and install CMake support files: export all targets to
BDWgcTargets; install the BDWgcTargets.cmake file with namespace BDWgc.
* CMakeLists.txt: Include CMakePackageConfigHelpers.
* CMakeLists.txt (gc): Specify target_include_directories.
* CMakeLists.txt [enable_cplusplus] (gccpp): Likewise.
* CMakeLists.txt [enable_cplusplus && enable_throw_bad_alloc_library]
(gctba): Likewise.
* CMakeLists.txt [build_cord] (cord): Likewise.
* CMakeLists.txt [build_cord] (cord): Change install export to
BDWgcTargets (export all targets to "BDWgcTargets" instead of separate
exports).
* CMakeLists.txt (gc): Likewise.
* CMakeLists.txt [enable_cplusplus] (gccpp): Likewise.
* CMakeLists.txt [enable_cplusplus && enable_throw_bad_alloc_library]
(gctba): Likewise.
* CMakeLists.txt (BDWgcTargets): Specify export (BDWgcTargets.cmake)
with namespace "BDWgc".
* CMakeLists.txt (Config.cmake.in): Specify configure package config
file and write basic package version file.
* CMakeLists.txt (BDWgcConfig.cmake, BDWgcConfigVersion.cmake): Specify
install.
* Config.cmake.in: New file (used to create BDWgcConfig.cmake).
* Makefile.am (EXTRA_DIST): Add Config.cmake.in item.
* doc/README.cmake (HOW TO IMPORT BDWGC): Add documentation section.
Diffstat (limited to 'Config.cmake.in')
-rw-r--r-- | Config.cmake.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Config.cmake.in b/Config.cmake.in new file mode 100644 index 00000000..354f0ae3 --- /dev/null +++ b/Config.cmake.in @@ -0,0 +1,5 @@ +# The BDWgc CMake configuration file. + +@PACKAGE_INIT@ +include("${CMAKE_CURRENT_LIST_DIR}/BDWgcTargets.cmake") +check_required_components(gc) |