From 6eda237be41878fc2116c922139d95e86b1c8c94 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Tue, 14 Jan 2025 19:00:09 +0530 Subject: [PATCH] test: Add cppcheck and multiple tests to ctest. Make `cppcheck` and `multiple` tests easier to run by adding them to ctest. --- test/cppcheck/CMakeLists.txt | 3 +++ test/multiple/CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/cppcheck/CMakeLists.txt b/test/cppcheck/CMakeLists.txt index 718a612e2..03bdafe18 100644 --- a/test/cppcheck/CMakeLists.txt +++ b/test/cppcheck/CMakeLists.txt @@ -11,3 +11,6 @@ target_include_directories(${TARGET_NAME} PRIVATE target_link_libraries(${TARGET_NAME} PRIVATE ${ALL_INTERFACE_TARGET} ) + +add_test(NAME ${TARGET_NAME} + COMMAND ${TARGET_NAME}) diff --git a/test/multiple/CMakeLists.txt b/test/multiple/CMakeLists.txt index c8525ed3f..253398d4c 100644 --- a/test/multiple/CMakeLists.txt +++ b/test/multiple/CMakeLists.txt @@ -18,3 +18,6 @@ target_include_directories(${TARGET_NAME} PRIVATE target_link_libraries(${TARGET_NAME} PRIVATE ${ALL_INTERFACE_TARGET} ) + +add_test(NAME ${TARGET_NAME} + COMMAND ${TARGET_NAME})