From d0c6cd55adb6969508cfab5139dbcdd1324d922b Mon Sep 17 00:00:00 2001 From: hvellyr Date: Sun, 29 May 2016 23:13:39 +0200 Subject: [PATCH] Enabling testing in the CMakeList ... which allows to use "make test" and/or "ctest -V" --- CMakeLists.txt | 2 ++ test/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 115fe70..40e555a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 2.8) add_definitions("-std=c++1y") +enable_testing() + add_subdirectory(lint) add_subdirectory(test) add_subdirectory(example) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8ad2766..7c372af 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -4,3 +4,5 @@ add_definitions("-std=c++1y") add_executable(test-main test.cc) target_link_libraries(test-main pthread) + +add_test(TestMain test-main)