summaryrefslogtreecommitdiffstats
path: root/cmake/QtBaseGlobalTargets.cmake
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2020-04-17 14:36:09 +0200
committerLeander Beernaert <leander.beernaert@qt.io>2020-04-20 13:38:53 +0200
commitdc4e5af752810d4f02b0485ecef2f1247b22beaa (patch)
tree7eae0b7b1b923d864e78515168b76a9944fb0e42 /cmake/QtBaseGlobalTargets.cmake
parentdac9548a67364eb1edd9ed6805369deac67ab9b1 (diff)
CMake: Move Resources API into Qt6CoreMacros
Move QT6_ADD_RESOURCE to Qt6CoreMacros in order to avoid the extra config file step. Change-Id: Ib445ca35c648cf344ee8795de8bdddc0f0758972 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtBaseGlobalTargets.cmake')
-rw-r--r--cmake/QtBaseGlobalTargets.cmake10
1 files changed, 0 insertions, 10 deletions
diff --git a/cmake/QtBaseGlobalTargets.cmake b/cmake/QtBaseGlobalTargets.cmake
index ddee9c63c2..a64a91a193 100644
--- a/cmake/QtBaseGlobalTargets.cmake
+++ b/cmake/QtBaseGlobalTargets.cmake
@@ -331,13 +331,3 @@ if(MACOS)
DESTINATION "${__GlobalConfig_install_dir}/macos"
)
endif()
-
-# Generate the new resource API
-set(QT_CORE_RESOURCE_GENERATED_FILE_NAME "${INSTALL_CMAKE_NAMESPACE}CoreResource.cmake" CACHE INTERNAL "")
-set(QT_CORE_RESOURCE_GENERATED_FILE_PATH "${CMAKE_CURRENT_BINARY_DIR}/${QT_CORE_RESOURCE_GENERATED_FILE_NAME}" CACHE INTERNAL "")
-configure_file(
- "${CMAKE_CURRENT_SOURCE_DIR}/cmake/QtResource.cmake.in"
- "${QT_CORE_RESOURCE_GENERATED_FILE_PATH}"
- @ONLY
-)
-include(${QT_CORE_RESOURCE_GENERATED_FILE_PATH})