diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-02-27 17:48:37 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2023-02-28 10:48:37 +0000 |
commit | 6f5a37b1d3d0952cf62cf8b0982e0425c60ddf03 (patch) | |
tree | 35e3662b7726e9157ce580c3f5ab3a5d65ba311f | |
parent | b3157afc0fe264c1c9538ecb92064b3131012a6d (diff) |
Make the mediaplayer target name unique to avoid conflicts in top-level build
Rename the scxml 'mediaplayer' target to 'mediaplayerscxml'
Amends 1eb77736b2e72bfcbdc356e183e3cbb0f09d71a1
Task-number: QTBUG-111090
Change-Id: I744624cb2b7547f03a8867b28f0301b1431b64c0
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
-rw-r--r-- | examples/scxml/mediaplayer/CMakeLists.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/scxml/mediaplayer/CMakeLists.txt b/examples/scxml/mediaplayer/CMakeLists.txt index 1a072c1..d4ddfe8 100644 --- a/examples/scxml/mediaplayer/CMakeLists.txt +++ b/examples/scxml/mediaplayer/CMakeLists.txt @@ -16,17 +16,17 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/scxml/mediaplayer") find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Scxml) -qt_add_executable(mediaplayer +qt_add_executable(mediaplayerscxml main.cpp thedatamodel.cpp thedatamodel.h ) -set_target_properties(mediaplayer PROPERTIES +set_target_properties(mediaplayerscxml PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) -target_link_libraries(mediaplayer PUBLIC +target_link_libraries(mediaplayerscxml PUBLIC Qt::Core Qt::Gui Qt::Qml @@ -37,7 +37,7 @@ set(mediaplayer_resource_files "Mediaplayer.qml" ) -qt6_add_resources(mediaplayer "mediaplayer" +qt6_add_resources(mediaplayerscxml "mediaplayer" PREFIX "/" FILES @@ -45,11 +45,11 @@ qt6_add_resources(mediaplayer "mediaplayer" ) # Statecharts: -qt6_add_statecharts(mediaplayer +qt6_add_statecharts(mediaplayerscxml mediaplayer.scxml ) -install(TARGETS mediaplayer +install(TARGETS mediaplayerscxml RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" |