[CMake] Symbolinc links

William Candillon wcandillon at gmail.com
Fri Aug 22 06:14:28 EDT 2008


Thank you very much.
This works fine for the make install target but do you know how I can
make it work with cpack ?
I cannot call INSTALL(FILES in my cmake script.

Best regards,

William

On Thu, Aug 21, 2008 at 5:01 PM, Alan W. Irwin
<irwin at beluga.phys.uvic.ca> wrote:
> On 2008-08-21 16:26+0200 William Candillon wrote:
>
>> Hi,
>>
>> During the installation of my cmake project on unix systems, I would
>> like to create a symbolic of my binary in /usr/bin.
>> Is it possible to execute the ln command only during the execution of
>> the install target ?
>
> Use either the INSTALL(CODE... or INSTALL(SCRIPT... signatures.  Either of
> those allows you to execute arbitrary CMake code (and thus do essentially
> anything you like) at install time.
>
> Once you get ln to work, I would change that to the cmake -E create_symlink
> command for best cross-platform results.
>
> Alan
> __________________________
> Alan W. Irwin
>
> Astronomical research affiliation with Department of Physics and Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
>
> Programming affiliations with the FreeEOS equation-of-state implementation
> for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
> package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
> Linux Links project (loll.sf.net); and the Linux Brochure Project
> (lbproject.sf.net).
> __________________________
>
> Linux-powered Science
> __________________________
>



-- 
William Candillon
http://apdt.googlecode.com


More information about the CMake mailing list