[CMake] public headers with different subdirectories

Michael Jackson mike.jackson at bluequartz.net
Tue Oct 14 18:30:16 EDT 2008


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                  mike.jackson at bluequartz.net
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 <post at hendrik-sattler.de>:
>> 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
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list