cross-compile.cmake 435 B

123456789101112
  1. #this file is only an example to configure CMAKE_TOOLCHAIN_FILE for cross compile CNStream
  2. SET(CMAKE_SYSTEM_NAME Linux)
  3. SET(CROSS_PREFIX aarch64-linux-gnu-) # for live555
  4. SET(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)
  5. SET(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)
  6. SET(CMAKE_SYSTEM_PROCESSOR aarch64)
  7. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  8. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  9. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)