diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-08-09 13:01:33 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-08-09 11:03:44 +0000 |
commit | 1e3d6f28c0fa18a187c6b0986f1b9db22b4fdf0a (patch) | |
tree | 77b0050845245abcae7ec0cbf1533c4b75591564 | |
parent | bacfc218112b2aab7ab2119028b23ecaca391995 (diff) | |
download | qtsvg-1e3d6f28c0fa18a187c6b0986f1b9db22b4fdf0a.tar.gz |
Fix build with strict add_qt_resource
Re-generate the CMakeLists.txt to ensure the PREFIX is specified.
Change-Id: I50fad8cdb10715ff53d0e6451b252c81b6c42c4a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r-- | tests/auto/qsvgplugin/CMakeLists.txt | 35 | ||||
-rw-r--r-- | tests/auto/qsvgrenderer/CMakeLists.txt | 9 |
2 files changed, 27 insertions, 17 deletions
diff --git a/tests/auto/qsvgplugin/CMakeLists.txt b/tests/auto/qsvgplugin/CMakeLists.txt index d51cc5c..aa67c41 100644 --- a/tests/auto/qsvgplugin/CMakeLists.txt +++ b/tests/auto/qsvgplugin/CMakeLists.txt @@ -5,6 +5,7 @@ ##################################################################### add_qt_test(tst_qsvgplugin + GUI SOURCES tst_qsvgplugin.cpp DEFINES @@ -18,21 +19,25 @@ add_qt_test(tst_qsvgplugin ) # Resources: -add_qt_resource(tst_qsvgplugin "resources" FILES - imageInclude.svg - imageIncludeA.svg - square.svg - square_size.svg - square_size_viewbox.svg - square_viewbox.svg - tall.svg - tall_size.svg - tall_size_viewbox.svg - tall_viewbox.svg - wide.svg - wide_size.svg - wide_size_viewbox.svg - wide_viewbox.svg) +add_qt_resource(tst_qsvgplugin "resources" + PREFIX + "/" + FILES + imageInclude.svg + imageIncludeA.svg + square.svg + square_size.svg + square_size_viewbox.svg + square_viewbox.svg + tall.svg + tall_size.svg + tall_size_viewbox.svg + tall_viewbox.svg + wide.svg + wide_size.svg + wide_size_viewbox.svg + wide_viewbox.svg +) #### Keys ignored in scope 1:.:.:qsvgplugin.pro:<TRUE>: diff --git a/tests/auto/qsvgrenderer/CMakeLists.txt b/tests/auto/qsvgrenderer/CMakeLists.txt index 0ef0c76..5ff0f43 100644 --- a/tests/auto/qsvgrenderer/CMakeLists.txt +++ b/tests/auto/qsvgrenderer/CMakeLists.txt @@ -5,6 +5,7 @@ ##################################################################### add_qt_test(tst_qsvgrenderer + GUI SOURCES tst_qsvgrenderer.cpp DEFINES @@ -18,8 +19,12 @@ add_qt_test(tst_qsvgrenderer ) # Resources: -add_qt_resource(tst_qsvgrenderer "resources" FILES - heart.svgz) +add_qt_resource(tst_qsvgrenderer "resources" + PREFIX + "/" + FILES + heart.svgz +) #### Keys ignored in scope 1:.:.:qsvgrenderer.pro:<TRUE>: |