7cf0ed
SET(CMAKE_SYSTEM_NAME Windows)
7cf0ed
7cf0ed
# specify the cross compiler
0c1e1f
SET(CMAKE_C_COMPILER /usr/bin/i686-w64-mingw32-gcc)
0c1e1f
SET(CMAKE_CXX_COMPILER /usr/bin/i686-w64-mingw32-g++)
7cf0ed
7cf0ed
# where is the target environment
0c1e1f
SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32/sys-root/mingw)
7cf0ed
7cf0ed
# search for programs in the build host directories
7cf0ed
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
7cf0ed
# for libraries and headers in the target directories
7cf0ed
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
7cf0ed
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
144b0e
0c1e1f
# Make sure Qt can be detected by CMake
0c1e1f
SET(QT_BINARY_DIR /usr/i686-w64-mingw32/bin /usr/bin)
dd7c74
dd7c74
# set the resource compiler (RHBZ #652435)
0c1e1f
SET(CMAKE_RC_COMPILER /usr/bin/i686-w64-mingw32-windres)
dd7c74
Kalev Lember a3f272
# override boost library suffix which defaults to -mgw
Erik van Pienbroek 2a5fde
SET(Boost_COMPILER -gcc47)
f1b504
f1b504
# These are needed for compiling lapack (RHBZ #753906)
0c1e1f
SET(CMAKE_Fortran_COMPILER /usr/bin/i686-w64-mingw32-gfortran)
0c1e1f
SET(CMAKE_AR:FILEPATH /usr/bin/i686-w64-mingw32-ar)
0c1e1f
SET(CMAKE_RANLIB:FILEPATH /usr/bin/i686-w64-mingw32-ranlib)
f1b504