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
  • 698,132
  • 130
  • 858
  • 1,229
CrSe
  • 318
  • 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
  • 513
  • 2
  • 16