summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>2023-02-17 13:54:58 +0100
committerIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>2023-02-20 11:20:30 +0100
commit2793f3e14bdfbe15e16435e986363675eff7d2da (patch)
treeefd5904ee54989280ca8f4daa08c7dd9526bc861 /examples
parente04d260125e440fc39d71a59300f4010dce19afb (diff)
simple example: Inline assets_resource_files in CMakeLists.txt
There is no need to introduce a variable to use it only once. Task-number: QTBUG-110895 Pick-to: 6.5 Change-Id: I9781ca5aca91be1e55e6feeaac65dde9cc99381b Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/httpserver/simple/CMakeLists.txt10
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/httpserver/simple/CMakeLists.txt b/examples/httpserver/simple/CMakeLists.txt
index 1bb2663..780cf06 100644
--- a/examples/httpserver/simple/CMakeLists.txt
+++ b/examples/httpserver/simple/CMakeLists.txt
@@ -32,17 +32,13 @@ if(ANDROID)
)
endif()
-set(assets_resource_files
- "assets/certificate.crt"
- "assets/private.key"
- "assets/qt-logo.png"
-)
-
qt_add_resources(simple "assets"
PREFIX
"/"
FILES
- ${assets_resource_files}
+ assets/certificate.crt
+ assets/private.key
+ assets/qt-logo.png
)
install(TARGETS simple