Toolchain-mingw32.cmake 443 B

123456789101112131415
  1. set(CMAKE_SYSTEM_NAME Windows)
  2. #set(COMPILER_PREFIX "i686-w64-mingw32")
  3. set(COMPILER_PREFIX "x86_64-w64-mingw32")
  4. set(CMAKE_C_COMPILER ${COMPILER_PREFIX}-gcc)
  5. set(CMAKE_CXX_COMPILER ${COMPILER_PREFIX}-g++)
  6. set(CMAKE_RC_COMPILER ${COMPILER_PREFIX}-windres)
  7. set(CMAKE_FIND_ROOT_PATH /usr/${COMPILER_PREFIX})
  8. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  9. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  10. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)