diff --git a/CMakeLists.txt b/CMakeLists.txt index 302b42b..5e95249 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,12 +38,15 @@ install(TARGETS mosh-me mk-moshable) ################################################################################ +include(CTest) if (BUILD_TESTING) find_package(Catch2 REQUIRED) + include(Catch) add_executable(mosh-me_test ${PROJECT_SOURCE_DIR}/test/pipeline.cpp ) target_link_libraries(mosh-me_test mosh-me-lib Catch2::Catch2WithMain) + catch_discover_tests(mosh-me_test) endif() ################################################################################