Toolchain.cmake 504 B

12345678910111213
  1. set(CMAKE_SYSTEM_NAME Linux)
  2. set(CMAKE_SYSTEM_VERSION 1)
  3. set(CMAKE_SYSTEM_PROCESSOR armv7-a)
  4. SET(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc)
  5. SET(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++)
  6. SET(CMAKE_AR /usr/bin/arm-linux-gnueabihf-gcc-ar)
  7. SET(CMAKE_STRIP /usr/bin/arm-linux-gnueabihf-gcc-strip)
  8. SET(CMAKE_RANLIB /usr/bin/arm-linux-gnueabihf-gcc-ranlib)
  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)