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