6a1ee4de07
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>
14 lines
345 B
CMake
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@)
|