mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 13:48:02 +08:00
12 lines
418 B
CMake
12 lines
418 B
CMake
|
|
||
|
SET(CMAKE_SYSTEM_NAME Linux)
|
||
|
|
||
|
SET(TOOLCHAIN_DIR /opt/riscv64-linux-x86_64)
|
||
|
set(CMAKE_CROSSCOMPILING true)
|
||
|
|
||
|
SET(CMAKE_SYSTEM_PROCESSOR riscv64)
|
||
|
SET(CMAKE_CXX_COMPILER ${TOOLCHAIN_DIR}/bin/riscv64-unknown-linux-gnu-g++)
|
||
|
SET(CMAKE_C_COMPILER ${TOOLCHAIN_DIR}/bin/riscv64-unknown-linux-gnu-gcc)
|
||
|
SET(CMAKE_ASM_COMPILER ${TOOLCHAIN_DIR}/bin/riscv64-unknown-linux-gnu-gcc)
|
||
|
SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN_DIR}/sysroot)
|