summaryrefslogtreecommitdiffstats
path: root/cmake/QtBaseCMakeTesting.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/QtBaseCMakeTesting.cmake')
-rw-r--r--cmake/QtBaseCMakeTesting.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/QtBaseCMakeTesting.cmake b/cmake/QtBaseCMakeTesting.cmake
new file mode 100644
index 0000000000..662ac8f498
--- /dev/null
+++ b/cmake/QtBaseCMakeTesting.cmake
@@ -0,0 +1,9 @@
+## Test the cmake build system:
+option(BUILD_CMAKE_TESTING "Build tests for the Qt build system" OFF)
+mark_as_advanced(BUILD_CMAKE_TESTING)
+
+if(BUILD_CMAKE_TESTING)
+ add_subdirectory("${PROJECT_SOURCE_DIR}/cmake/tests")
+endif()
+
+