2
0

toolchain_mingw.cmake.in 571 B

123456789101112131415161718
  1. # Target operating system name
  2. set(CMAKE_SYSTEM_NAME Windows)
  3. # Compilers to use
  4. set(CMAKE_C_COMPILER %PREFIX%-gcc)
  5. set(CMAKE_CXX_COMPILER %PREFIX%-g++)
  6. set(CMAKE_RC_COMPILER %PREFIX%-windres)
  7. # Location of the target environment
  8. set(CMAKE_FIND_ROOT_PATH %ROOTPATH%)
  9. # Adjust the default behaviour of the FIND_XXX() commands:
  10. # search for headers and libraries in the target environment,
  11. # search for programs in the host environment
  12. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  13. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  14. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)