use configure_package_config_file()

This commit is contained in:
Lukas Solanka
2018-05-04 23:02:00 +01:00
parent b7c169ccbc
commit 392ec18324
2 changed files with 11 additions and 4 deletions

4
Config.cmake.in Normal file
View File

@@ -0,0 +1,4 @@
@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")
check_required_components("@PROJECT_NAME@")