From b6f7fcbd249b69529fce181a51e56c944bc45c35 Mon Sep 17 00:00:00 2001 From: Brock Allen Date: Sun, 28 Jan 2024 22:40:49 +0000 Subject: [PATCH] test: Enable ctest to run ceedling unit tests --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 292c54b..c8dee17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,3 +23,10 @@ target_include_directories( PUBLIC include ) + +enable_testing() +add_test( + NAME ceedling + COMMAND bash -c "ceedling clobber; ceedling gcov:all; ceedling utils:gcov" + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests/unittest +)