Cdroid/cmake/allwinner-x5toolchain.cmake

13 lines
456 B
CMake
Raw Normal View History

2021-12-14 18:33:00 +08:00
SET(CMAKE_SYSTEM_NAME Linux)
2022-01-14 12:06:18 +08:00
SET(TOOLCHAIN_DIR /home/houzh/NX5/arm-toolchain/ext-toolchain)
2021-12-14 18:33:00 +08:00
set(CMAKE_CROSSCOMPILING true)
2022-01-14 12:06:18 +08:00
SET(M_LIBRAY m)
SET(SIZEOF_UINT64_T 8)
2022-01-14 12:06:18 +08:00
SET(CMAKE_SYSTEM_PROCESSOR arm)
2021-12-14 18:33:00 +08:00
SET(CMAKE_CXX_COMPILER ${TOOLCHAIN_DIR}/bin/arm-linux-gnueabi-g++)
SET(CMAKE_C_COMPILER ${TOOLCHAIN_DIR}/bin/arm-linux-gnueabi-gcc)
SET(CMAKE_ASM_COMPILER ${TOOLCHAIN_DIR}/bin/arm-linux-gnueabi-gcc)
SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN_DIR}/arm-linux-gnueabi)