qt5base-lts/cmake/QtBaseCMakeTesting.cmake
Tobias Hunger f37ce9ab84 CMake: Add option to run cmake build tests
Use "cmake -DBUILD_CMAKE_TESTING=ON" to enable running cmake build system
tests with ctest.

Change-Id: I0a32e2d1771c9bbb0df013d0d955a9b58b1d4b79
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
2018-11-22 08:39:12 +00:00

10 lines
233 B
CMake

## 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()