I use the following:

SET (HEADERS
   Common/Types.h
   Common/ICore.h
)

SET (NAME Common)


INSTALL (FILES ${HEADERS}
            DESTINATION include/MXADataModel/${NAME}
            COMPONENT Headers
)

This was actually taken from a Macro that I wrote to do all this for me. If you want the entire macro let me know.

_________________________________________________________
Mike Jackson                  [EMAIL PROTECTED]
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio

On Oct 14, 2008, at 6:07 PM, Eric Noulard wrote:

2008/10/14 Hendrik Sattler <[EMAIL PROTECTED]>:
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?

I do have the same need.
I currently use

install(DIRECTORY ...)



--
Erk
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to