From 1e3d6f28c0fa18a187c6b0986f1b9db22b4fdf0a Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 9 Aug 2019 13:01:33 +0200 Subject: 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 --- tests/auto/qsvgplugin/CMakeLists.txt | 35 +++++++++++++++++++--------------- tests/auto/qsvgrenderer/CMakeLists.txt | 9 +++++++-- 2 files changed, 27 insertions(+), 17 deletions(-) (limited to 'tests') 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:: 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:: -- cgit v1.2.1