diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 880a3d3db..925c78522 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -28,7 +28,7 @@ target_link_libraries(tests zm ${ZM_BIN_LIBS} bcrypt - Catch2::Catch2) + Catch2::Catch2WithMain) target_include_directories(tests PRIVATE diff --git a/tests/main.cpp b/tests/main.cpp index 1a00d1291..7c2697fc2 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -16,4 +16,4 @@ */ #define CATCH_CONFIG_MAIN -#include "catch2/catch.hpp" +#include "catch2/catch_all.hpp" diff --git a/tests/zm_catch2.h b/tests/zm_catch2.h index 5f92277ea..09a4bd7d3 100644 --- a/tests/zm_catch2.h +++ b/tests/zm_catch2.h @@ -18,7 +18,7 @@ #ifndef ZONEMINDER_TESTS_ZM_CATCH2_H_ #define ZONEMINDER_TESTS_ZM_CATCH2_H_ -#include "catch2/catch.hpp" +#include "catch2/catch_all.hpp" #include "zm_vector2.h"