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)

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to