[CMake] How to pass arguments to 'cmake -P' scripts?
Matthew Woehlke
mw_triad at users.sourceforge.net
Fri Feb 1 17:36:55 EST 2008
I'm trying to write an X cursor generator using cmake. Because I can
create multiple sizes of cursors from a single config, I need to
generate config files as part of the build process. Currently, I'm using
a script that looks like this:
awk \
"{
printf \"%i %i %i \", (\$1*$3)/90, (\$2*$3)/90, (\$3*$3)/90 ;
if (NF > 4) printf \"%s %i\n\", \$4, \$5 ; else printf \"%s\n\", \$4
}" < $1 > $2
I'd like to remove the awk dependency by using a cmake script instead,
but I couldn't figure out how to tell the script what parameters it
should run with.
Suggestions?
--
Matthew
"It's impossible! But... do-able."
-- Robert MacDougal (Sean Connery, Entrapment)
More information about the CMake
mailing list