From 324120e69c4cad1ea49ece0af2f7db3a2d0e5dd2 Mon Sep 17 00:00:00 2001 From: Michael Georg Hansen Date: Wed, 18 Jul 2012 22:56:47 +0200 Subject: [PATCH] Make building of tests configurable via configuration switch. This commit makes building of tests configurable via a configuration switch given to CMake: -DUNIT_TESTING=true Therefore, making changes to CMakeLists.txt for enabling tests is not necessary any more. It is done the same way in CSync. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 08a4fb8c93..23784f7c99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,7 +71,9 @@ file( GLOB TRANS_FILES ${CMAKE_SOURCE_DIR}/translations/mirall_*.ts) set(TRANSLATIONS ${TRANS_FILES}) add_subdirectory(src) -# add_subdirectory(test) +if(UNIT_TESTING) + add_subdirectory(test) +endif(UNIT_TESTING) if(BUILD_OWNCLOUD_OSX_BUNDLE) install( FILES exclude.lst DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/Resources )