From 8ab333967425d9b31670d8fc1b8f4ade5c6c94ff Mon Sep 17 00:00:00 2001 From: Seiichi <26223147+suikan4github@users.noreply.github.com> Date: Fri, 25 Oct 2024 14:35:24 +0900 Subject: [PATCH] Now, test is foundable from ctest. --- CMakeLists.txt | 1 + test/CMakeLists.txt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 596a003..2b14add 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,7 @@ if( ${FOUNDPOS} LESS "0") # If yes, it is Windows or Linux message(STATUS "Target is Windows or Linux") # Unit test. + enable_testing() add_subdirectory("test") endif() # string(FIND CMAKE_CXX_COMPILER "arm-none-eabi") GREATER_EQUAL 0 diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7b4e90b..96961cd 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,5 +1,4 @@ -#---------------------------------------------------------------------------- -# Do not edit lines below + # GCOV settings set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")