diff options
author | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> | 2023-02-17 13:54:58 +0100 |
---|---|---|
committer | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> | 2023-02-20 11:20:30 +0100 |
commit | 2793f3e14bdfbe15e16435e986363675eff7d2da (patch) | |
tree | efd5904ee54989280ca8f4daa08c7dd9526bc861 /examples | |
parent | e04d260125e440fc39d71a59300f4010dce19afb (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.txt | 10 |
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 |