Skip to content

Commit

Permalink
cmake: Add toolchain for compilation on mingw32 (32 bit)
Browse files Browse the repository at this point in the history
This commit adds toolchain for compilation on 32 bit version
of mingw32.

Change-Id: I9277d2c5282022fbf5c0ee397319f9641a5382a0
  • Loading branch information
DarkHaze authored and kazik208 committed Oct 15, 2015
1 parent 84193e9 commit b3dda88
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mingw32-toolchain.cmake
@@ -0,0 +1,15 @@
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_VERSION 8)

set(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
set(CMAKE_RC_COMPILER i686-w64-mingw32-windres)

set(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32/ /usr/local/i686-w64-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_SHARED_LIBRARY_LINK_C_FLAGS)
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)

0 comments on commit b3dda88

Please sign in to comment.