2009-06-09 08:44:18 +00:00
|
|
|
SET(CMAKE_SYSTEM_NAME Windows)
|
|
|
|
|
|
|
|
# specify the cross compiler
|
|
|
|
SET(CMAKE_C_COMPILER /usr/bin/i686-pc-mingw32-gcc)
|
|
|
|
SET(CMAKE_CXX_COMPILER /usr/bin/i686-pc-mingw32-g++)
|
|
|
|
|
|
|
|
# where is the target environment
|
|
|
|
SET(CMAKE_FIND_ROOT_PATH /usr/i686-pc-mingw32/sys-root/mingw)
|
|
|
|
|
|
|
|
# search for programs in the build host directories
|
|
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
|
|
# for libraries and headers in the target directories
|
|
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
2010-05-24 09:39:19 +00:00
|
|
|
|
|
|
|
# FindQt4.cmake queries qmake to get information,
|
|
|
|
# which doesn't work when crosscompiling
|
|
|
|
SET(QT_HEADERS_DIR ${CMAKE_FIND_ROOT_PATH}/include)
|
|
|
|
SET(QT_LIBRARY_DIR ${CMAKE_FIND_ROOT_PATH}/lib)
|
2010-11-11 22:39:31 +00:00
|
|
|
|
|
|
|
# set the resource compiler (RHBZ #652435)
|
|
|
|
SET(CMAKE_RC_COMPILER /usr/bin/i686-pc-mingw32-windres)
|
|
|
|
|
2011-05-01 08:22:31 +00:00
|
|
|
# override boost library suffix which defaults to -mgw
|
2012-01-10 23:11:36 +00:00
|
|
|
SET(Boost_COMPILER -gcc47)
|
2011-11-16 00:35:40 +00:00
|
|
|
|
|
|
|
# These are needed for compiling lapack (RHBZ #753906)
|
|
|
|
SET(CMAKE_Fortran_COMPILER /usr/bin/i686-pc-mingw32-gfortran)
|
2011-11-22 22:52:28 +00:00
|
|
|
SET(CMAKE_AR:FILEPATH /usr/bin/i686-pc-mingw32-ar)
|
|
|
|
SET(CMAKE_RANLIB:FILEPATH /usr/bin/i686-pc-mingw32-ranlib)
|
2011-11-16 00:35:40 +00:00
|
|
|
|