arm-wince.toolchain.cmake 821 B

1234567891011121314151617181920212223242526272829303132333435
  1. set(CMAKE_SYSTEM_NAME WindowsCE)
  2. if(NOT CMAKE_SYSTEM_VERSION)
  3. set(CMAKE_SYSTEM_VERSION 8.0)
  4. endif()
  5. if(NOT CMAKE_SYSTEM_PROCESSOR)
  6. set(CMAKE_SYSTEM_PROCESSOR armv7-a)
  7. endif()
  8. if(NOT CMAKE_GENERATOR_TOOLSET)
  9. set(CMAKE_GENERATOR_TOOLSET CE800)
  10. endif()
  11. # Needed to make try_compile to succeed
  12. if(BUILD_HEADLESS)
  13. set(CMAKE_USER_MAKE_RULES_OVERRIDE
  14. ${CMAKE_CURRENT_LIST_DIR}/arm-wince-headless-overrides.cmake)
  15. endif()
  16. if(NOT CMAKE_FIND_ROOT_PATH_MODE_PROGRAM)
  17. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  18. endif()
  19. if(NOT CMAKE_FIND_ROOT_PATH_MODE_LIBRARY)
  20. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  21. endif()
  22. if(NOT CMAKE_FIND_ROOT_PATH_MODE_INCLUDE)
  23. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
  24. endif()
  25. if(NOT CMAKE_FIND_ROOT_PATH_MODE_PACKAGE)
  26. set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
  27. endif()