Is there any way to include a header (.hpp) in all cpp files from a project (automatic)?
The project is compiled using cmake.
Is there any way to include a header (.hpp) in all cpp files from a project (automatic)?
The project is compiled using cmake.
You can use pre-compiled headers to that. Cross-compile implementation of that for CMake is not very easy, so, I recommend 3rd party module for that, for example CMakePCHCompiler