You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
741 B
19 lines
741 B
SET(TOOLCHAIN_HOME "/home/yqw/workspace/linux/common/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu")
|
|
SET(TOOLCHAIN_NAME "aarch64-rockchip1031-linux-gnu")
|
|
|
|
# this is required
|
|
#SET(CMAKE_SYSTEM_NAME Linux)
|
|
|
|
# specify the cross compiler
|
|
SET(CMAKE_C_COMPILER ${TOOLCHAIN_HOME}/bin/${TOOLCHAIN_NAME}-gcc)
|
|
SET(CMAKE_CXX_COMPILER ${TOOLCHAIN_HOME}/bin/${TOOLCHAIN_NAME}-g++)
|
|
|
|
# where is the target environment
|
|
SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN_HOME})
|
|
|
|
# search for programs in the build host directories (not necessary)
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
# for libraries and headers in the target directories
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|