mingw32 toolchain

This commit is contained in:
Eduardo Bart 2011-03-20 14:53:20 -03:00
parent c6b5a256ca
commit b0b0424f0a
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_C_COMPILER i486-mingw32-gcc)
SET(CMAKE_CXX_COMPILER i486-mingw32-g++)
SET(CMAKE_RC_COMPILER i486-mingw32-windres)
SET(CMAKE_FIND_ROOT_PATH /usr/i486-mingw32)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -static-libgcc -static-libstdc++")