aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2021-05-09 20:27:28 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2021-05-18 08:37:29 +0000
commitb1ccd9ab328cc7f7e34ab653ec93f389b9945e19 (patch)
tree8ce97344b4ae475d2965802c50a93957d6950502 /tests
parent3ec5e234fe40985d58839409c3dce53d4cd78f17 (diff)
cmake: Add bundled QtScript build
Also, make QtScript dependency optional like we do in the Qbs build. Tested on macOS, Linux and Windows. CMake 3.15 is now required for the CMP0092 policy which removes default warning flags from CMAKE_CXX_FLAGS. Change-Id: I199fb802d5ad72d1ac8d5a89c05372c43581c95d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/buildgraph/CMakeLists.txt2
-rw-r--r--tests/auto/language/CMakeLists.txt2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/buildgraph/CMakeLists.txt b/tests/auto/buildgraph/CMakeLists.txt
index a3019295e..3d9d0348d 100644
--- a/tests/auto/buildgraph/CMakeLists.txt
+++ b/tests/auto/buildgraph/CMakeLists.txt
@@ -2,4 +2,6 @@ add_qbs_test(buildgraph
SOURCES
tst_buildgraph.cpp
tst_buildgraph.h
+ DEPENDS
+ qbsscriptengine
)
diff --git a/tests/auto/language/CMakeLists.txt b/tests/auto/language/CMakeLists.txt
index 008a66fe0..b008f52d7 100644
--- a/tests/auto/language/CMakeLists.txt
+++ b/tests/auto/language/CMakeLists.txt
@@ -2,7 +2,7 @@ add_qbs_test(language
DEFINES
"QBS_VERSION=\"${QBS_VERSION}\""
DEPENDS
- Qt5::Script
+ qbsscriptengine
SOURCES
tst_language.cpp
tst_language.h