Browse Source

mingw32 toolchain

Eduardo Bart 10 years ago
parent
commit
b0b0424f0a
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      cmake/cmake-mingw32-toolchain

+ 9
- 0
cmake/cmake-mingw32-toolchain View File

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

Loading…
Cancel
Save