2 # TODO abort if tar not found (or does not understand cjf?)
4 find_program(INKSCAPE inkscape)
5 # TODO abort if inkscape not found
7 find_program(XCURSORGEN xcursorgen)
8 # TODO abort if xcursorgen not found
10 find_program(INKSCAPE inkscape "$ENV{PROGRAMFILES}/Inkscape" "$ENV{INKSCAPE_DIR}")
13 macro(set_dependencies cursor)
14 file(READ ${CONFIGDIR}/${cursor}.in config_contents)
15 string(REPLACE "\n" ";" config_contents ${config_contents})
17 foreach(png ${config_contents})
18 string(REGEX REPLACE "[0-9]* [0-9]* [0-9]* " "" png ${png})
19 string(REGEX REPLACE "[.]png [0-9]*$" ".png" png ${png})
20 list(APPEND ${cursor}_inputs ${png})
22 endmacro(set_dependencies)
25 foreach(config ${CONFIGS})
26 string(REGEX REPLACE ".*/" "" cursor ${config})
27 string(REGEX REPLACE "[.]in" "" cursor ${cursor})
28 list(APPEND CURSORS ${cursor})
29 set_dependencies(${cursor})