Include mastodonpp.hpp, which then includes all other headers.
Use it in your CMake project like this:
Or compile your code with g++ $(pkg-config --cflags --libs mastodonpp).
g++ $(pkg-config --cflags --libs mastodonpp)