2021-09-14 22:10:32 +00:00
|
|
|
# Setup Toolchain
|
|
|
|
macro(setup_toolchain target)
|
|
|
|
# Use ARM Cross-Compiler
|
2022-03-06 20:53:27 +00:00
|
|
|
set(CMAKE_C_COMPILER "${target}-gcc")
|
|
|
|
set(CMAKE_CXX_COMPILER "${target}-g++")
|
2021-09-14 22:10:32 +00:00
|
|
|
set(CMAKE_FIND_ROOT_PATH "/usr/${target}" "/usr/lib/${target}")
|
|
|
|
# Extra
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
|
|
endmacro()
|