cmake: BUILD_TESTS as option explicitly; added missed dependency

This commit is contained in:
Ilya Kitaev 2016-05-27 10:42:31 +03:00
parent 1f0d016f44
commit 7ac134254f

View file

@ -436,6 +436,9 @@ include(version.cmake)
add_subdirectory(contrib) add_subdirectory(contrib)
add_subdirectory(src) add_subdirectory(src)
option(BUILD_TESTS "Build tests." OFF)
if(BUILD_TESTS) if(BUILD_TESTS)
add_subdirectory(tests) add_subdirectory(tests)
endif() endif()