mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
18 lines
428 B
CMake
18 lines
428 B
CMake
# compiler tools
|
|
foreach(tool objcopy nm ld)
|
|
string(TOUPPER ${tool} TOOL)
|
|
find_program(${TOOL} ${tool})
|
|
if(NOT ${TOOL})
|
|
message(FATAL_ERROR "could not find ${tool}")
|
|
endif()
|
|
endforeach()
|
|
|
|
# os tools
|
|
foreach(tool echo patch grep rm mkdir nm genromfs awk cp touch make unzip)
|
|
string(TOUPPER ${tool} TOOL)
|
|
find_program(${TOOL} ${tool})
|
|
if(NOT ${TOOL})
|
|
message(FATAL_ERROR "could not find ${TOOL}")
|
|
endif()
|
|
endforeach()
|