[CMake] How to set path to library header files?

Stephen Kelly steveire at gmail.com
Wed Dec 3 19:39:10 EST 2014


Domen Vrankar wrote:

> I've started solving this a while ago with treating every library as
> an external dependency even if it is part of the same repository as
> the code for the executable.
> For every new library that I write I also write a FindSomeLib.cmake

Much of what you describe should not be necessary in a modern CMake system.

 http://www.cmake.org/cmake/help/v3.0/manual/cmake-packages.7.html
 http://www.cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html#alias-targets
 http://www.cmake.org/cmake/help/v3.0/command/export.html#command:export

Thanks,

Steve.





More information about the CMake mailing list