diff options
Diffstat (limited to 'examples/multimedia/video/mediaplayer/CMakeLists.txt')
-rw-r--r-- | examples/multimedia/video/mediaplayer/CMakeLists.txt | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/examples/multimedia/video/mediaplayer/CMakeLists.txt b/examples/multimedia/video/mediaplayer/CMakeLists.txt index f9e29d1fd..1c70197af 100644 --- a/examples/multimedia/video/mediaplayer/CMakeLists.txt +++ b/examples/multimedia/video/mediaplayer/CMakeLists.txt @@ -30,16 +30,31 @@ find_package(Qt6 REQUIRED COMPONENTS Core Quick QuickControls2 Svg) set(PROJECT_SOURCES main.cpp - qml.qrc ) qt_add_executable(mediaplayer ${PROJECT_SOURCES} ) +set(resource_files + "main.qml" + "PlaybackControl.qml" + "MetadataInfo.qml" + "AudioControl.qml" + "PlaybackSeekControl.qml" + "PlaybackRateControl.qml" + "PlayerMenuBar.qml" + "TracksInfo.qml" + "Mute_Icon.svg" + "Speaker_Icon.svg" +) + qt6_add_resources(mediaplayer "mediaplayer" - PREFIX "/" - FILES "Mute_Icon.svg" "Speaker_Icon.svg") + PREFIX + "/" + FILES + ${resource_files} +) target_compile_definitions(mediaplayer PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>) |