From 815efd8d367fafc0e3e1155446d2944694919024 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 10 Jun 2022 13:27:38 -0400 Subject: [PATCH] CMakeLists.txt - enable ctest framework and register tests --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb692c0..2bc2c43 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.3) +enable_testing() + project(minmea) find_package(Threads REQUIRED) # Workaround for https://github.com/libcheck/check/issues/48#issuecomment-322965461 @@ -18,3 +20,5 @@ target_link_libraries(example minmea) target_link_libraries(tests minmea ${CHECK_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) target_include_directories(tests PUBLIC ${CHECK_INCLUDE_DIRS}) target_compile_options(tests PUBLIC ${CHECK_CFLAGS_OTHER}) + +add_test(NAME tests COMMAND $)