1# KDbConfig.cmake provides information about the installed KDb library. 2# It can be used directly from CMake via find_package(KDb NO_MODULE) 3# 4# Any changes in this ".cmake" file will be overwritten by CMake, the source is the ".cmake.in" file. 5# 6# The following CMake variables are provided: 7# KDb_VERSION_MAJOR - the major version number of KDb 8# KDb_VERSION_MINOR - the minor version number of KDb 9# KDb_VERSION_PATCH - the patch version number of KDb 10# KDb_INCLUDE_DIRS - the include directories to use 11# 12# Additionally, the following imported library targets are created, which may be used directly 13# with target_link_libraries(): 14# KDb - the KDb library 15# 16# Provided features are available under KDB_* variables at the end of this file. 17 18@PACKAGE_INIT@ 19 20include(CMakeFindDependencyMacro) 21 22find_dependency(Qt5Core @REQUIRED_QT_VERSION@) 23find_dependency(Qt5Widgets @REQUIRED_QT_VERSION@) 24find_dependency(Qt5Xml @REQUIRED_QT_VERSION@) 25find_dependency(KF5CoreAddons @REQUIRED_KF5_VERSION@) 26 27include("${CMAKE_CURRENT_LIST_DIR}/KDbTargets.cmake") 28include("${CMAKE_CURRENT_LIST_DIR}/KDbQCHTargets.cmake") 29 30# Features 31set(KDB_DEBUG_GUI @KDB_DEBUG_GUI@) 32 33# Match COMPONENTS to features (KDB_ prefixes) 34#message(status " KDb_FIND_COMPONENTS=${KDb_FIND_COMPONENTS}") 35foreach (_COMP ${KDb_FIND_COMPONENTS}) 36 if(NOT DEFINED KDB_${_COMP} OR NOT ${KDB_${_COMP}}) 37 message(FATAL_ERROR "KDb does not contain required component ${_COMP}. Update KDb or remove this requirement.") 38 endif() 39endforeach() 40 41include(FeatureSummary) 42set_package_properties(KDb PROPERTIES 43 DESCRIPTION "Database connectivity and creation framework" 44 URL "https://community.kde.org/KDb") 45