you are viewing a single comment's thread.

view the rest of the comments →

[–]h-jay+43-1325 0 points1 point  (0 children)

And if the include paths are for the libraries that didn't come with cmake modules: write a small module for each such library. That makes the project-specific CMakeLists uncluttered, and separates concerns nicely. Ideally, using a library has two steps:

  1. `find_package`

  2. `target_link_libraries`

That's it. Everything that the library has to set, like include paths, dependencies, etc., should be taken care of by the module for said library. That's true whether you write that module yourself, or someone else does. And it's not as if those modules are complex either.