2012/5/30 vivek goel <[email protected]>: > 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
