Actually use the xxd binary that was found

This commit is contained in:
Sfan5 2014-03-14 22:50:27 +01:00
parent 2e848b9d8e
commit 0ff8f026ba

@ -69,7 +69,7 @@ endif (XXD_EXECUTABLE)
add_custom_command( add_custom_command(
OUTPUT colors.h OUTPUT colors.h
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/colors.txt colors.txt COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/colors.txt colors.txt
COMMAND xxd -i colors.txt colors.h COMMAND ${XXD_EXECUTABLE} -i colors.txt colors.h
DEPENDS colors.txt DEPENDS colors.txt
) )
set_property(SOURCE TileGenerator.cpp APPEND PROPERTY OBJECT_DEPENDS colors.h) set_property(SOURCE TileGenerator.cpp APPEND PROPERTY OBJECT_DEPENDS colors.h)