Changeset View
Changeset View
Standalone View
Standalone View
src/KPropertyWidgetsConfig.cmake.in
Show All 11 Lines | |||||
12 | # KPropertyWidgets - the KPropertyWidgets library | 12 | # KPropertyWidgets - the KPropertyWidgets library | ||
13 | 13 | | |||
14 | @PACKAGE_INIT@ | 14 | @PACKAGE_INIT@ | ||
15 | 15 | | |||
16 | find_dependency(Qt5Widgets @REQUIRED_QT_VERSION@ REQUIRED) | 16 | find_dependency(Qt5Widgets @REQUIRED_QT_VERSION@ REQUIRED) | ||
17 | find_dependency(KPropertyCore @PROJECT_VERSION@ EXACT) | 17 | find_dependency(KPropertyCore @PROJECT_VERSION@ EXACT) | ||
18 | 18 | | |||
19 | include("${CMAKE_CURRENT_LIST_DIR}/KPropertyWidgetsTargets.cmake") | 19 | include("${CMAKE_CURRENT_LIST_DIR}/KPropertyWidgetsTargets.cmake") | ||
20 | include("${CMAKE_CURRENT_LIST_DIR}/KPropertyWidgetsQCHTargets.cmake") | ||||
20 | 21 | | |||
21 | # Features | 22 | # Features | ||
22 | set(KPROPERTY_KF @KPROPERTY_KF@) | 23 | set(KPROPERTY_KF @KPROPERTY_KF@) | ||
23 | 24 | | |||
24 | # Match COMPONENTS to features (KPROPERTY_ prefixes) | 25 | # Match COMPONENTS to features (KPROPERTY_ prefixes) | ||
25 | foreach (_COMP ${KPropertyWidgets_FIND_COMPONENTS}) | 26 | foreach (_COMP ${KPropertyWidgets_FIND_COMPONENTS}) | ||
26 | if(NOT DEFINED KPROPERTY_${_COMP} OR NOT ${KPROPERTY_${_COMP}}) | 27 | if(NOT DEFINED KPROPERTY_${_COMP} OR NOT ${KPROPERTY_${_COMP}}) | ||
27 | message(FATAL_ERROR "KPropertyWidgets does not contain required component ${_COMP}. Update KPropertyWidgets or remove this requirement.") | 28 | message(FATAL_ERROR "KPropertyWidgets does not contain required component ${_COMP}. Update KPropertyWidgets or remove this requirement.") | ||
28 | endif() | 29 | endif() | ||
29 | endforeach() | 30 | endforeach() |