example_crosscompiling_toolchain.cmake 400 B

1234567891011
  1. set(CMAKE_SYSTEM_NAME Linux)
  2. set(CMAKE_SYSROOT /usr/armv7a-hardfloat-linux-gnueabi/)
  3. set(CMAKE_C_COMPILER /usr/bin/armv7a-hardfloat-linux-gnueabi-gcc)
  4. set(CMAKE_CXX_COMPILER /usr/bin/armv7a-hardfloat-linux-gnueabi-g++)
  5. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  6. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  7. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
  8. set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH)