I am trying to get catch2 running for a barebone project just to get familiar with it but so far I failed installing it in whatever sense possible. the catch2-git repository either points you to installing it together with cmake (via vcpkg (I cannot use MSVC and don't want to at this point) or points to some Ubuntu solution.)
I figured I should just download the catch2 files directly and put it somewhere locally, run my code then and include the .hpp directly:
#include "../../Catch2/src/catch2/catch_all.hpp"
Now the compiler (I use gcc and the code blocks ide) will find catch_all.hpp
but tells me that it cannot include the headerfiles that are linked in catch_all.hpp (first include tries to include catch_benchmark_all.hpp):
...\Catch2\src\catch2\catch_all.hpp|25|fatal error: catch2/benchmark/catch_benchmark_all.hpp: No such file or directory|
The #include
statement in catch_all.hpp
looks like this:
#include <catch2/benchmark/catch_benchmark_all.hpp>
Now I would assume that one answer to my problem would be to make all the include paths inside the catch2 to be relative but is that really what they want me to do here? There must be a better way, no?