On 05/24/2012 03:43 PM, vivek goel wrote:
> I have a project with 10 binary files.
> and I am installing custom 15 bash files using
> 
> install(PROGRAMS
>           <file-list>
>          DESTINATION /bin        
>           )
> 
> Is there a way to have custom install target like
> make install script which will install only required script files with
> building source code for binary files?
> 
> regards
> Vivek Goel

Add the "COMPONENT scripts" option to the install() command and then
install the scripts like this:

cmake -DCOMPONENT=scripts -P cmake_install.cmake

Note that the -D option must be *before* the -P option, otherwise it is
ignored.

HTH

Michael
--

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

Reply via email to