Honor BUILD_TESTING

Only build tests if BUILD_TESTING is on

Differential Revision: https://phabricator.kde.org/D13982
This commit is contained in:
Antonio Rojas 2018-07-10 18:56:48 +02:00
parent 92ee4852d9
commit 061588dcd6

View File

@ -181,8 +181,10 @@ if (BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
add_subdirectory(autotests)
add_subdirectory(tests)
if (BUILD_TESTING)
add_subdirectory(autotests)
add_subdirectory(tests)
endif()
add_subdirectory(templates)
################ create PlasmaConfig.cmake and install it ###########################