fix(test): proper registration

This commit is contained in:
2026-03-10 19:07:17 +01:00
parent 8b23d09ac5
commit 56033e0694

View File

@@ -38,12 +38,15 @@ install(TARGETS mosh-me mk-moshable)
################################################################################ ################################################################################
include(CTest)
if (BUILD_TESTING) if (BUILD_TESTING)
find_package(Catch2 REQUIRED) find_package(Catch2 REQUIRED)
include(Catch)
add_executable(mosh-me_test add_executable(mosh-me_test
${PROJECT_SOURCE_DIR}/test/pipeline.cpp ${PROJECT_SOURCE_DIR}/test/pipeline.cpp
) )
target_link_libraries(mosh-me_test mosh-me-lib Catch2::Catch2WithMain) target_link_libraries(mosh-me_test mosh-me-lib Catch2::Catch2WithMain)
catch_discover_tests(mosh-me_test)
endif() endif()
################################################################################ ################################################################################