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
6 lines
183 B
CMake
6 lines
183 B
CMake
@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@")
|