Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Schmidt <dev@dominik-schmidt.de>2018-12-06 14:03:59 +0300
committerDominik Schmidt <domme@tomahawk-player.org>2019-02-08 16:05:21 +0300
commit3c0477f433a38dd60448190f00138b4649d7a608 (patch)
tree15a0f82748a6f2120db13ecdc5a10598ccb6c6a4 /CMakeLists.txt
parent597acba2741a2d3ca8a7c0ddde47b484f0df374d (diff)
Switch to standard opt-out BUILD_TESTING instead of opt-in UNIT_TESTING
Compare https://cmake.org/cmake/help/v3.0/module/CTest.html Craft automatically handles BUILD_TESTING, so we don't need to handle it in our own blueprint.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 951fb7338..d5b538467 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -192,9 +192,11 @@ if(BUILD_SHELL_INTEGRATION)
add_subdirectory(shell_integration)
endif()
-if(UNIT_TESTING)
+include(CTest)
+if(BUILD_TESTING)
+ enable_testing()
add_subdirectory(test)
-endif(UNIT_TESTING)
+endif()
configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
configure_file(version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)