cross-compile.cmake 529 B

1234567891011121314
  1. #this file is an example to configure CMAKE_TOOLCHAIN_FILE for cross compile EasyDK
  2. SET(CMAKE_SYSTEM_NAME Linux)
  3. SET(BIN_DIR $ENV{CROSS_COMPILER_ROOT})
  4. SET(CROSS_PREFIX ${BIN_DIR}/aarch64-linux-gnu-)
  5. SET(CMAKE_C_COMPILER ${BIN_DIR}/aarch64-linux-gnu-gcc)
  6. SET(CMAKE_CXX_COMPILER ${BIN_DIR}/aarch64-linux-gnu-g++)
  7. SET(CMAKE_SYSTEM_PROCESSOR aarch64)
  8. SET(CMAKE_FIND_ROOT_PATH $ENV{INSTALL_DIR})
  9. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  10. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  11. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)