From 846fdf9f5cb8616137db1e86b2ffd498705dd334 Mon Sep 17 00:00:00 2001 From: "Kevin M. Godby" Date: Wed, 4 May 2016 19:55:00 -0500 Subject: [PATCH] Added ctest so we now have a 'make test' target for running tests. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5965bade..25f2ebcf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,13 +23,13 @@ target_include_directories( set(HEADER_BASE "${CMAKE_CURRENT_SOURCE_DIR}/include") +include(CTest) if(SPDLOG_BUILD_EXAMPLES) - enable_testing() - add_subdirectory(example) + add_subdirectory(example) endif() if(SPDLOG_BUILD_TESTS) - add_subdirectory(tests) + add_subdirectory(tests) endif() ### Install ###