[CMake] Yet another install() vs. exclude_from_all thread
Daniel Hornung
daniel.hornung at ds.mpg.de
Tue Apr 27 04:52:24 EDT 2010
On 2010-04-27 10:41, Hendrik Sattler wrote:
> I use the following in
> http://gitorious.org/openobex/mainline/blobs/master/apps/CMakeLists.txt:
> add_executable ( ${prog} EXCLUDE_FROM_ALL ${${prog}_SOURCES} )
> target_link_libraries ( ${prog} ${${prog}_LIBS} )
> get_target_property ( ${prog}_EXECUTABLE ${prog} LOCATION )
> install ( PROGRAMS ${${prog}_EXECUTABLE}
> DESTINATION bin
> COMPONENT applications
> OPTIONAL
> )
>
> It is a PITA with libraries, though :-(
>
> HS
Thanks, will try this method out!
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 905 bytes
Desc: OpenPGP digital signature
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100427/4fe05271/attachment.pgp>
More information about the CMake
mailing list