Commit 22576979 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

cmake: Allow tests to be excluded from build

parent 9a461fa6
......@@ -2,5 +2,9 @@ project(medialibrary)
cmake_minimum_required(VERSION 2.8)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
option(BUILD_TESTS "Shall unit tests be built?" ON)
add_subdirectory( src )
add_subdirectory( test )
if (${BUILD_TESTS})
add_subdirectory( test )
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment