You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
776 B

  1. INCLUDE(CMakeForceCompiler)
  2. SET (CMAKE_CROSSCOMPILING TRUE)
  3. SET (CMAKE_SYSTEM_NAME "Darwin")
  4. SET (CMAKE_SYSTEM_PROCESSOR "armv7s")
  5. SET (SDKVER "7.1")
  6. SET (DEVROOT "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain")
  7. SET (SDKROOT "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${SDKVER}.sdk")
  8. SET (CC "${DEVROOT}/usr/bin/clang")
  9. SET (CXX "${DEVROOT}/usr/bin/clang++")
  10. CMAKE_FORCE_C_COMPILER (${CC} LLVM)
  11. CMAKE_FORCE_CXX_COMPILER (${CXX} LLVM)
  12. SET (CMAKE_FIND_ROOT_PATH "${SDKROOT}" "${DEVROOT}")
  13. SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  14. SET (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  15. SET (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)