12 lines
275 B
CMake
12 lines
275 B
CMake
|
set(CMAKE_SYSTEM_NAME Linux)
|
||
|
set(CMAKE_SYSTEM_PROCESSOR arm)
|
||
|
|
||
|
set(BUILD_TARGET "arm-linux-gnueabihf")
|
||
|
|
||
|
set(CMAKE_SYSROOT "/usr/${BUILD_TARGET}")
|
||
|
|
||
|
set(CMAKE_C_COMPILER clang)
|
||
|
|
||
|
add_compile_options(-target ${BUILD_TARGET})
|
||
|
|
||
|
add_link_options(-fuse-ld=lld -target ${BUILD_TARGET})
|