Allow building SlimFem tests through CMake
This is made optional thanks to an option BUILD_TESTS
set to off by default. At CMake configuration time, setting -DBUILD_TESTS=ON
will build the executables SF_test, SF_test_integrators and SF_parsort in the directory openCARP/build/fem/slimfem
.
In the future, they can also be integrated into CMake's CTest and testing framework after carefully selecting the command line options they are run with.
This was requested by @fatemeh who had issues compiling test_integrators
.
Edit: I dropped my change to test_integrators
as Aurel had another fix. My changes transformed it into a non backend-specific test through a param_globals
integration.