mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-12 12:05:08 +08:00
17 lines
581 B
CMake
Executable File
17 lines
581 B
CMake
Executable File
|
|
SET(CMAKE_SYSTEM_NAME Linux)
|
|
|
|
SET(TOOLCHAIN_DIR /opt/sigma-arm-linux-gnueabihf/)
|
|
set(CMAKE_CROSSCOMPILING true)
|
|
|
|
SET(CMAKE_SYSTEM_PROCESSOR arm)
|
|
SET(CMAKE_CXX_COMPILER ${TOOLCHAIN_DIR}/bin/arm-linux-gnueabihf-g++)
|
|
SET(CMAKE_C_COMPILER ${TOOLCHAIN_DIR}/bin/arm-linux-gnueabihf-gcc)
|
|
SET(CMAKE_ASM_COMPILER ${TOOLCHAIN_DIR}/bin/arm-linux-gnueabihf-gcc)
|
|
SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN_DIR})
|
|
|
|
IF(EXISTS ${TOOLCHAIN_DIR}/sysroot)
|
|
SET(ENV{PKG_CONFIG_PATH} "${TOOLCHAIN_DIR}/sysroot//usr/lib/pkgconfig:$ENV{PKG_CONFIG_PATH}")
|
|
SET(CMAKE_SYSROOT ${TOOLCHAIN_DIR}/sysroot)
|
|
ENDIF()
|