Toolchain.cmake 737 B

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