Cdroid/cmake/ali3528-mtitoolchain.cmake

12 lines
427 B
CMake
Raw Normal View History

2021-06-24 10:12:55 +08:00
SET(CMAKE_SYSTEM_NAME Linux)
SET(TOOLCHAIN_DIR $ENV{HOME}/toolchain_mti)
set(CMAKE_CROSSCOMPILING true)
2021-12-20 16:14:28 +08:00
SET(CMAKE_SYSTEM_PROCESSOR mips)
2021-06-24 10:12:55 +08:00
SET(CMAKE_CXX_COMPILER ${TOOLCHAIN_DIR}/host/usr/bin/mips-mti-linux-gnu-g++)
SET(CMAKE_C_COMPILER ${TOOLCHAIN_DIR}/host/usr/bin/mips-mti-linux-gnu-gcc)
2021-12-20 16:14:28 +08:00
SET(CMAKE_ASM_COMPILER ${TOOLCHAIN_DIR}/host/usr/bin/mips-mti-linux-gnu-gcc)
2021-06-24 10:12:55 +08:00
SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN_DIR}/target/sysroot)