diff --git a/CMakeLists.txt b/CMakeLists.txt index e3f69860..0e3d603b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,7 +127,7 @@ install(EXPORT YOMM2Targets ) # Copy config files to install directory install(FILES - "${CMAKE_CURRENT_BINARY_DIR}/YOMM2Config.cmake" + "YOMM2Config.cmake" "${CMAKE_CURRENT_BINARY_DIR}/YOMM2ConfigVersion.cmake" DESTINATION lib/cmake/YOMM2 ) diff --git a/YOMM2Config.cmake b/YOMM2Config.cmake new file mode 100644 index 00000000..4ebad50c --- /dev/null +++ b/YOMM2Config.cmake @@ -0,0 +1,7 @@ +include(CMakeFindDependencyMacro) + +find_dependency(Boost 1.74... REQUIRED) + +include("${CMAKE_CURRENT_LIST_DIR}/YOMM2Targets.cmake") + +check_required_components(YOMM2)