summaryrefslogtreecommitdiffstats
path: root/src/testlib/Qt5TestConfigExtras.cmake.in
diff options
context:
space:
mode:
authorKevin Funk <kevin.funk@kdab.com>2019-02-12 12:21:56 +0100
committerKevin Funk <kevin.funk@kdab.com>2019-02-12 13:37:08 +0000
commit988162eaf8b2aeae61f820382021116bf4ee391d (patch)
treef2792622ac2ae52527d2801d1784be419f33be8f /src/testlib/Qt5TestConfigExtras.cmake.in
parent05aeaed906cbec3654178d1438ae2ad361a35ddd (diff)
cmake: Start to use ConfigExtra.cmake files
Enables the use of e.g. QT_NO_DEBUG in compiler flags, -fPIC, passing on of QT_NAMESPACE, etc. pp. Dropping a lot of custom code which handled adding imported targets for the command-line tools (this is all being handled by CMake already). It needs to be investigated if we need to resurrect Qt5GuiConfigExtras.cmake.in in one way or the other. Change-Id: I4fa141b68fddaad4f33e628c59d5d0b3a7b3a096 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/testlib/Qt5TestConfigExtras.cmake.in')
-rw-r--r--src/testlib/Qt5TestConfigExtras.cmake.in6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/testlib/Qt5TestConfigExtras.cmake.in b/src/testlib/Qt5TestConfigExtras.cmake.in
index 2a575958ae..86a706ea9d 100644
--- a/src/testlib/Qt5TestConfigExtras.cmake.in
+++ b/src/testlib/Qt5TestConfigExtras.cmake.in
@@ -1,5 +1 @@
-
-set_property(TARGET Qt5::Test
- APPEND PROPERTY
- INTERFACE_COMPILE_DEFINITIONS QT_TESTCASE_BUILDDIR=\\\"\${CMAKE_BINARY_DIR}\\\"
-)
+set_property(TARGET @QT_CMAKE_EXPORT_NAMESPACE@::Test APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS QT_TESTCASE_BUILDDIR="${CMAKE_BINARY_DIR}")