Skip to content

Commit 81f02d5

Browse files
committed
Add CTest testing
1 parent 53ea25f commit 81f02d5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

source-code/convolution/cpp/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ set(CMAKE_CXX_EXTENSIONS NO)
77

88
add_compile_options(-Wall -Wextra -Wpedantic)
99

10+
enable_testing()
11+
1012
add_subdirectory(src)

source-code/convolution/cpp/src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ if(Catch2_FOUND)
1111
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/convolution)
1212
target_link_libraries(test_convolution.exe
1313
PRIVATE convolution)
14+
15+
add_test(NAME convolution
16+
COMMAND test_convolution.exe)
1417
else()
1518
message(STATUS "Catch2 not found, tests will not be built")
1619
endif()

0 commit comments

Comments
 (0)