diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-02-16 22:12:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-03-07 16:23:11 (GMT) |
commit | 204f5d443c68317b8a24439035bf1f6c39cc001c (patch) | |
tree | 81b4467962c18126c2e5adedf447a67751bd811c /Tests/FindPackageTest/RelocatableConfig.cmake.in | |
parent | a8b57149351168425f4040c8b99167238cca041d (diff) | |
download | CMake-204f5d443c68317b8a24439035bf1f6c39cc001c.zip CMake-204f5d443c68317b8a24439035bf1f6c39cc001c.tar.gz CMake-204f5d443c68317b8a24439035bf1f6c39cc001c.tar.bz2 |
add CMakePackageConfigHelpers: configure_package_config_file()
The function configure_package_config_file() may be used instead of
configure_file() for generating the Config.cmake files for installation,
they help to make those files relocatable.
Alex
Diffstat (limited to 'Tests/FindPackageTest/RelocatableConfig.cmake.in')
-rw-r--r-- | Tests/FindPackageTest/RelocatableConfig.cmake.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/FindPackageTest/RelocatableConfig.cmake.in b/Tests/FindPackageTest/RelocatableConfig.cmake.in new file mode 100644 index 0000000..7a34b2f --- /dev/null +++ b/Tests/FindPackageTest/RelocatableConfig.cmake.in @@ -0,0 +1,5 @@ +@PACKAGE_INIT@ + +set(RELOC_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@") +set(RELOC_SHARE_DIR "@PACKAGE_SHARE_INSTALL_DIR@") +set_and_check(RELOC_BUILD_DIR "@PACKAGE_CURRENT_BUILD_DIR@") |