diff options
Diffstat (limited to 'cmake/dnsliteConfig.cmake.in')
| -rw-r--r-- | cmake/dnsliteConfig.cmake.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/dnsliteConfig.cmake.in b/cmake/dnsliteConfig.cmake.in new file mode 100644 index 0000000..3319e07 --- /dev/null +++ b/cmake/dnsliteConfig.cmake.in @@ -0,0 +1,19 @@ +set(DNSLITE_VERSION @VERSION@) + +@PACKAGE_INIT@ + +message(STATUS "dnslite version: ${DNSLITE_VERSION}") + +set(supported_components Core) + +foreach(comp ${dnslite_FIND_COMPONENTS}) + if(NOT comp IN_LIST supported_components) + set(dnslite_FOUND False) + set(dnslite_NOT_FOUND_MESSAGE "Unsupported component: ${comp}") + endif() + message(STATUS "- component: ${comp}") + include("${CMAKE_CURRENT_LIST_DIR}/dnslite${comp}.cmake") + set(dnslite_${comp}_FOUND TRUE) +endforeach() + +check_required_components(dnslite) |
