[CMake] multiple executables
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Sun Jun 1 13:03:52 EDT 2008
On 2008-06-01 16:29+0200 Peèiva Jan wrote:
> install (TARGETS autoconsole
> RUNTIME
> DESTINATION bin
> RENAME ivview.exe)
>
> It copies the file, but RENAME does not work (It probably works only for
> PROGRAMS and FILES signatures). I was planning to use this command about ten
> times to get all the required .exe.
RENAME does not appear in the documentation of the install(TARGETS ...)
signature of the install command so I think you are correct what you
attempted above should not work. However, if you instead set the
OUTPUT_NAME property of the target using set_target_properties, I believe
you will get the result you want.
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
__________________________
More information about the CMake
mailing list