[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: Re: [CMake] Conditional install
From: Tyler Roscoe <tyler () cryptio ! net>
Date: 2009-07-27 15:05:24
Message-ID: 20090727150524.GE27266 () cryptio ! net
[Download RAW message or body]
On Mon, Jul 27, 2009 at 04:19:48PM +0200, rozelak@volny.cz 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic