diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-08-09 18:23:22 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-08-09 18:23:22 +0200 |
| commit | fe7560fe6134b7957147bbe083718d8749b35164 (patch) | |
| tree | 4eabd50412479be3ce87c64dcf67426801b9874f | |
| parent | b7fc02e5234029b55b71ec771aaccad3a739b3c3 (diff) | |
CMake: add FLTKConfigVersion.cmake
This file enables consumers to search for a particular FLTK version.
| -rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index be0ede666..171d946a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,6 +178,22 @@ if(FLTK_BUILD_EXAMPLES) endif(FLTK_BUILD_EXAMPLES) ####################################################################### +# Create and install version config file 'FLTKConfigVersion.cmake' +####################################################################### + +include(CMakePackageConfigHelpers) + +write_basic_package_version_file(FLTKConfigVersion.cmake + # [VERSION requiredVersion] # defaults to project version + COMPATIBILITY SameMinorVersion +) + +install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/FLTKConfigVersion.cmake + DESTINATION ${FLTK_CONFIG_PATH} +) + +####################################################################### # installation ####################################################################### |
