diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-10-11 15:47:00 +0200 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-10-14 09:09:55 +0000 |
commit | 9e633bbda7608ac0231809e2a6a97ae8f2d849d6 (patch) | |
tree | 1139c346c7ee144a74443734a78d7662935b5355 /examples/quick/particles/itemparticle | |
parent | 31df3b6ced92197636e0b1f450631971bbf17cd2 (diff) |
Regenerate Examples
Change-Id: I2fbfb44bbb6d667e022bffb480feaf74ff0d0a5e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/quick/particles/itemparticle')
-rw-r--r-- | examples/quick/particles/itemparticle/CMakeLists.txt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/quick/particles/itemparticle/CMakeLists.txt b/examples/quick/particles/itemparticle/CMakeLists.txt index c0bb8b7ccc..9e09849c30 100644 --- a/examples/quick/particles/itemparticle/CMakeLists.txt +++ b/examples/quick/particles/itemparticle/CMakeLists.txt @@ -9,7 +9,7 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) -set(INSTALL_EXAMPLEDIR "examples") +set(INSTALL_EXAMPLEDIR "examples/quick/particles/itemparticle") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) @@ -26,6 +26,17 @@ target_link_libraries(itemparticle PUBLIC Qt::Quick ) + +file(GLOB resource_glob_0 RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "content/*") +foreach(file IN LISTS resource_glob_0) + set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/${file}" PROPERTIES QT_RESOURCE_ALIAS "${file}") +endforeach() + +file(GLOB resource_glob_1 RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*qml") +foreach(file IN LISTS resource_glob_1) + set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/${file}" PROPERTIES QT_RESOURCE_ALIAS "${file}") +endforeach() + # Resources: set_source_files_properties("../images/_explo.png" PROPERTIES QT_RESOURCE_ALIAS "images/_explo.png" @@ -233,16 +244,6 @@ qt6_add_resources(itemparticle "shared" FILES ${shared_resource_files} ) - -file(GLOB resource_glob_0 RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "content/*") -foreach(file IN LISTS resource_glob_0) - set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/${file}" PROPERTIES QT_RESOURCE_ALIAS "${file}") -endforeach() - -file(GLOB resource_glob_1 RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*qml") -foreach(file IN LISTS resource_glob_1) - set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/${file}" PROPERTIES QT_RESOURCE_ALIAS "${file}") -endforeach() set(qmake_immediate_resource_files ${resource_glob_0} ${resource_glob_1} @@ -255,7 +256,6 @@ qt6_add_resources(itemparticle "qmake_immediate" ${qmake_immediate_resource_files} ) - install(TARGETS itemparticle RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" |