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})