Re: [CMake] How to export headers

2010-03-12 Thread Michael Surette
On 03/12/2010 12:55 AM, Michael Wild wrote: On 12. Mar, 2010, at 24:25 , Michael Surette wrote: I am installing a library with the following code export(TARGETS mylib APPEND FILE mylibConfig.cmake ) install(TARGETS mylib EXPORT mylib-install DESTINATION ${PREFIX_LIB} ) where mylib h

Re: [CMake] How to export headers

2010-03-11 Thread Michael Wild
On 12. Mar, 2010, at 24:25 , Michael Surette wrote: > I am installing a library with the following code > > export(TARGETS mylib > APPEND FILE mylibConfig.cmake > ) > install(TARGETS mylib > EXPORT mylib-install > DESTINATION ${PREFIX_LIB} > ) > > where mylib has been previously been adde

[CMake] How to export headers

2010-03-11 Thread Michael Surette
I am installing a library with the following code export(TARGETS mylib APPEND FILE mylibConfig.cmake ) install(TARGETS mylib EXPORT mylib-install DESTINATION ${PREFIX_LIB} ) where mylib has been previously been added as a library. I am also installing a directory of headers as follows