also build tests when no build type is specified

This commit is contained in:
Martin Brodbeck 2018-07-11 16:11:25 +02:00
parent b6f2391f0b
commit 92fa2ef42a

View file

@ -19,7 +19,7 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
add_subdirectory(src)
if(CMAKE_BUILD_TYPE MATCHES Debug)
if(NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE MATCHES Debug)
include(CTest)
enable_testing()
add_subdirectory(test)