move the installation logic to the top-level of cmakelists

discussion: https://github.com/BlackMATov/meta.hpp/issues/119
This commit is contained in:
BlackMATov
2025-01-25 05:09:52 +07:00
parent 166e6f3cf2
commit c7cb12f11f
5 changed files with 77 additions and 70 deletions

7
cmake/config.cmake.in Normal file
View File

@@ -0,0 +1,7 @@
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(Threads REQUIRED)
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-targets.cmake")
check_required_components(@PROJECT_NAME@)