toolchain-mingw32.cmake 905 B

123456789101112131415161718192021222324252627
  1. # http://www.cmake.org/Wiki/CmakeMingw
  2. #
  3. # Copyright (c) 2006-2014 Mathieu Malaterre <mathieu.malaterre@voxxl.com>
  4. #
  5. # Redistribution and use is allowed according to the terms of the New
  6. # BSD license.
  7. # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
  8. #
  9. # the name of the target operating system
  10. set(CMAKE_SYSTEM_NAME Windows)
  11. # which compilers to use for C and C++
  12. set(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
  13. set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
  14. set(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
  15. # here is the target environment located
  16. set(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
  17. # adjust the default behaviour of the FIND_XXX() commands:
  18. # search headers and libraries in the target environment, search
  19. # programs in the host environment
  20. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  21. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  22. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)