[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Cmake custom install target for a particular binary
From:       Eric Noulard <eric.noulard () gmail ! com>
Date:       2012-05-30 12:10:29
Message-ID: CAPASGLqZ6YRmPt7ZzcmYTi2L7AZmEOGvAByZ09PFZgaEwi-O3A () mail ! gmail ! com
[Download RAW message or body]

2012/5/30 vivek goel <goelvivek2011@gmail.com>:
> hi,
> I am having 10 binary inside my project.
> If I run make install DESTDIR=<> it builds all source code and install
> everything.
> Is there a way I can install a particular binary ?
> Like having custom target like
> make install.bin1 DESTDIR=<> which will install only particular binary ?

You can not do that this way, and there is some related (backloged)
feature request:
http://public.kitware.com/Bug/view.php?id=10531

What you can currenlty do is:

define COMPONENT in your CMake install(...) statement,
then you can use:
DESTDIR=/whatever/path cmake -DCOMPONENT="Whatever" -P cmake_install.cmake

and this should install the concerned component using DESTDIR.

This is not exactly what you want because you may not want to define
one component per target but at least it can be workaround.

-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
--

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