diff --git a/src/resonanceReconstruction/rmatrix/test/CMakeLists.txt b/src/resonanceReconstruction/rmatrix/test/CMakeLists.txt index 910e17a..c8b41c6 100644 --- a/src/resonanceReconstruction/rmatrix/test/CMakeLists.txt +++ b/src/resonanceReconstruction/rmatrix/test/CMakeLists.txt @@ -1,3 +1 @@ -add_executable( resonanceReconstruction.rmatrix.test rmatrix.test.cpp ) -target_link_libraries( resonanceReconstruction.rmatrix.test PUBLIC resonanceReconstruction ) -add_test( NAME resonanceReconstruction.rmatrix COMMAND resonanceReconstruction.rmatrix.test ) +add_cpp_test( rmatrix rmatrix.test.cpp ) diff --git a/src/resonanceReconstruction/rmatrix/test/rmatrix.test.cpp b/src/resonanceReconstruction/rmatrix/test/rmatrix.test.cpp index 73f109f..958cca4 100644 --- a/src/resonanceReconstruction/rmatrix/test/rmatrix.test.cpp +++ b/src/resonanceReconstruction/rmatrix/test/rmatrix.test.cpp @@ -1,6 +1,9 @@ -#define CATCH_CONFIG_MAIN +// include Catch2 +#include +#include +using Catch::Approx; -#include "catch.hpp" +// what we are testing #include "resonanceReconstruction/rmatrix.hpp" using namespace njoy::resonanceReconstruction;