diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-05-25 12:37:15 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-05-25 16:40:56 +0200 |
commit | d53f7fcc52ab8f10ff406d5ae3bd00deeab969d8 (patch) | |
tree | dacd03ab1a3160162fc64083c267420ddaa27aab /src/core/CMakeLists.txt | |
parent | f71472d37e93a54be78c91ae1770204a4de273ea (diff) |
Add support for top-level configs and developer builds
Guess a toolchain link for top-level builds.
Copy the resources to their final destinations, and search
for the helper process where it is build in this config.
Change-Id: Ie9e829c19d42dddb85df188e48ec269f85268ed4
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/CMakeLists.txt')
-rw-r--r-- | src/core/CMakeLists.txt | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index e467957e8..5017a552b 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -681,5 +681,25 @@ else() DESTINATION ${WEBENGINE_ROOT_BUILD_DIR}/resources CONFIGURATIONS ${config} ) + if(NOT QT_WILL_INSTALL) + # TODO: Could we get rid of ALL? + add_custom_target( + install_resources_${config} + ALL + DEPENDS ${buildDir}/${config}/QtWebEngineCore.stamp + COMMAND ${CMAKE_COMMAND} -E make_directory + ${CMAKE_INSTALL_PREFIX}/resources + COMMAND ${CMAKE_COMMAND} -E copy + ${resourceFiles} ${icuFiles} + ${CMAKE_INSTALL_PREFIX}/resources) + add_custom_target( + install_locales_${config} + ALL + DEPENDS ${buildDir}/${config}/QtWebEngineCore.stamp + COMMAND ${CMAKE_COMMAND} -E make_directory + ${CMAKE_INSTALL_PREFIX}/translations/qtwebengine_locales + COMMAND ${CMAKE_COMMAND} -E copy + ${localeFiles} + ${CMAKE_INSTALL_PREFIX}/translations/qtwebengine_locales) + endif() endif() - |