metaforce/hecl/bintoc/CMakeLists.txt

17 lines
458 B
CMake
Raw Normal View History

add_executable(bintoc bintoc.c)
macro(bintoc out in sym)
2015-09-01 19:31:33 -07:00
if(IS_ABSOLUTE ${out})
set(theOut ${out})
else()
set(theOut ${CMAKE_CURRENT_BINARY_DIR}/${out})
endif()
if(IS_ABSOLUTE ${in})
set(theIn ${in})
else()
set(theIn ${CMAKE_CURRENT_SOURCE_DIR}/${in})
endif()
add_custom_command(OUTPUT ${theOut}
COMMAND $<TARGET_FILE:bintoc> ARGS ${theIn} ${theOut} ${sym}
DEPENDS ${theIn})
endmacro()