[CMake] public headers with different subdirectories

Hendrik Sattler post at hendrik-sattler.de
Tue Oct 14 17:56:10 EDT 2008


Hi,

suppose I have a library that has several header files. Those header files are 
do not have a flat tree but some subdirectories.
However, I'd like to use the PUBLIC_HEADER property and install stuff.

Can this be done with
  install(TARGETS ... PUBLIC_HEADER DESTINATION include/mylib)
or do I have to use
  install(FILES ...)
instead?

HS


More information about the CMake mailing list