Index: CMakeLists.txt =================================================================== --- boot/environ/CMakeLists.txt (revision 74550) +++ boot/environ/CMakeLists.txt (working copy) @@ -106,11 +106,18 @@ add_dependencies(bootmgfw asm bugcodes) +add_custom_command( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/app/rosload/logo.c ${CMAKE_CURRENT_BINARY_DIR}/app/rosload/logo.h + COMMAND native-bin2c ${CMAKE_CURRENT_SOURCE_DIR}/app/rosload/logo.bmp ${CMAKE_CURRENT_BINARY_DIR}/app/rosload/logo.c ${CMAKE_CURRENT_BINARY_DIR}/app/rosload/logo.h BIN g_Logo + DEPENDS native-bin2c ${CMAKE_CURRENT_SOURCE_DIR}/app/rosload/logo.bmp) + list(APPEND ROSLOAD_BASE_SOURCE app/rosload/rosload.c + ${CMAKE_CURRENT_BINARY_DIR}/app/rosload/logo.c ) add_executable(rosload ${ROSLOAD_BASE_SOURCE}) +add_target_include_directories(rosload ${CMAKE_CURRENT_BINARY_DIR}/app/rosload) set_target_properties(rosload PROPERTIES SUFFIX ".efi") if(MSVC)