qt5base-lts/cmake/QtModuleConfig.cmake.in
Tobias Hunger 6a1ee4de07 CMake: Store Qt features in CMake Cache
This is less self-contained than what we have, but significantly speeds
up cmake configure/generate runs.

This patch also warns when a feature is already defined.

Change-Id: I8cab63e208ba98756b47d362a39b462f5ec55e20
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-01-17 16:16:55 +00:00

14 lines
345 B
CMake

@PACKAGE_INIT@
find_package(Qt@PROJECT_VERSION_MAJOR@ QUIET)
include("${CMAKE_CURRENT_LIST_DIR}/@module_versioned@Targets.cmake")
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/@module_versioned@Macros.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/@module_versioned@Macros.cmake")
endif()
include QtFeature
qt_make_features_available(Qt::@module@)