Don't build test cases by default. Only build them, when -DBUILD_TESTING=on is specified.

This commit is contained in:
Sebastian Messmer 2016-02-14 16:25:21 +01:00
parent 1e975f64f7
commit 29f3c07539
2 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,11 @@ include(utils.cmake)
require_gcc_version(4.8)
require_clang_version(3.5) # clang 3.5 needed for spdlog dependency
# Default value is not to build test cases
if(NOT DEFINED BUILD_TESTING)
set(BUILD_TESTING OFF CACHE INTERNAL "BUILD_TESTING")
endif(NOT DEFINED BUILD_TESTING)
add_subdirectory(vendor)
add_subdirectory(src)
add_subdirectory(test)

View File

@ -80,7 +80,7 @@ Build & Install
2. Build
$ mkdir cmake && cd cmake
$ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=off
$ cmake .. -DCMAKE_BUILD_TYPE=Release
$ make
3. Install