On Mon, Jul 27, 2009 at 04:19:48PM +0200, [email protected] wrote:
> When 'make' is called, both libraries are built and then STATICALLY linked
> to the application - works perfectly.
>
> However, when 'make install' is called, the libraries are installed as
> well (right, they contain INSTALL() definition ...)
>
> What I need is to tell to CMake NOT to install the libraries (they are
>
> separate projects and it is not necessary to publish them together with
> the binary). I mean something like EXCLUDE_FROM_ALL but in form of
> EXCLUDE_FROM_INSTALL :-)
Maybe the COMPONENT argument to install() can help you?
Otherwise, maybe only define install() rules for your components if
there is no top-level target that will end up doing the work?
if (NOT TARGET myExe)
install(myLib1 ...)
install(myLib2 ...)
endif ()
tyler
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake