diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-06-25 10:58:39 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-08-09 15:00:13 +0200 |
commit | 218d6c00056bfe120fd4a072e38ea96375c1d61b (patch) | |
tree | d015bad223c8fb42dccf0000a5b175459fa8d570 /tests | |
parent | e66132194084060f6c3590668d0e1cb91737b177 (diff) |
CMake: Build minimal subset of tests in desktop static builds
For now we limit it to cmake auto tests only.
Task-number: QTBUG-87580
Change-Id: I53c7b26d6e17c3e0b1853622aa86c9953be37063
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit 39d8bef8dc3d2cf8a0c7bdb418e66fc8329dfc98)
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt index 1389560db4..33a23abde7 100644 --- a/tests/auto/CMakeLists.txt +++ b/tests/auto/CMakeLists.txt @@ -1,4 +1,9 @@ -# Generated from auto.pro. +add_subdirectory(cmake) + +# Limit set of tests to run for static Qt builds. +if(QT_BUILD_MINIMAL_STATIC_TESTS) + return() +endif() if(TARGET Qt::Quick) add_subdirectory(qml) @@ -7,7 +12,6 @@ if(TARGET Qt::Quick) endif() add_subdirectory(core) add_subdirectory(qmldevtools) -add_subdirectory(cmake) add_subdirectory(toolsupport) if(NOT UIKIT) add_subdirectory(qmltest) |