summaryrefslogtreecommitdiffstats
path: root/examples/webengine
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2021-08-30 17:37:58 +0200
committerMichal Klocek <michal.klocek@qt.io>2021-08-31 09:44:03 +0200
commiteb06977c7a8d4afb4b15e02f818dd658c04d1cc8 (patch)
treef0acc059de9be8f9676a9a947cf3b4655125423a /examples/webengine
parent53e99bd479f74c5399664d26e35e392875da8fb5 (diff)
Fix target name collision for top level build
When doing top level build we have tests and examples which have same target name as in other modules. Pick-to: 6.2 Task-number: QTBUG-95590 Change-Id: I94662b3b8f71583213dea664df35b86e24dc7579 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'examples/webengine')
-rw-r--r--examples/webengine/minimal/CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/webengine/minimal/CMakeLists.txt b/examples/webengine/minimal/CMakeLists.txt
index 2972fc63b..ecfc05879 100644
--- a/examples/webengine/minimal/CMakeLists.txt
+++ b/examples/webengine/minimal/CMakeLists.txt
@@ -17,14 +17,14 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS WebEngineQuick)
-qt_add_executable(minimal-qml
+qt_add_executable(webengine-minimal-qml
main.cpp
)
-set_target_properties(minimal-qml PROPERTIES
+set_target_properties(webengine-minimal-qml PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
-target_link_libraries(minimal-qml PUBLIC
+target_link_libraries(webengine-minimal-qml PUBLIC
Qt::Core
Qt::Gui
Qt::WebEngineQuick
@@ -36,14 +36,14 @@ set(qml_resource_files
"main.qml"
)
-qt6_add_resources(minimal-qml "qml"
+qt6_add_resources(webengine-minimal-qml "qml"
PREFIX
"/"
FILES
${qml_resource_files}
)
-install(TARGETS minimal-qml
+install(TARGETS webengine-minimal-qml
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"