From bcf6e3231134876c95d79299d73b2b3a7e32efa7 Mon Sep 17 00:00:00 2001 From: theraven Date: Wed, 9 Jan 2013 19:02:00 +0000 Subject: [PATCH] Make it possible to disable building the tests. --- CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 217f84f..c435acc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -292,6 +292,11 @@ configure_file( add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) -enable_testing() -add_subdirectory(Test) +set(TESTS TRUE CACHE BOOL + "Enable building the tests") + +if (TESTS) + enable_testing() + add_subdirectory(Test) +endif (TESTS)