0

Is there any way to include a header (.hpp) in all cpp files from a project (automatic)?

The project is compiled using cmake.

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
CrSe
  • 328
  • 1
  • 2
  • 10

1 Answers1

0

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

knst
  • 523
  • 2
  • 16