build-pspp: Fix documentation build.
[pspp] / cmake-crossbuild.txt
1 SET(CMAKE_SYSTEM_NAME Windows)
2 SET(CMAKE_SYSTEM_PROCESSOR x86_64)
3
4 # specify the cross compiler
5 SET(CMAKE_C_COMPILER /usr/bin/x86_64-w64-mingw32-gcc)
6 SET(CMAKE_CXX_COMPILER /usr/bin/x86_64-w64-mingw32-g++)
7
8 # where is the target environment
9 SET(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32)
10
11 # search for programs in the build host directories
12 SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
13 # for libraries and headers in the target directories
14 SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
15 SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
16
17 # Make sure Qt can be detected by CMake
18 SET(QT_BINARY_DIR /usr/x86_64-w64-mingw32/bin /usr/bin)
19
20 # set the resource compiler (RHBZ #652435)
21 SET(CMAKE_RC_COMPILER /usr/bin/x86_64-w64-mingw32-windres)
22
23 # These are needed for compiling lapack (RHBZ #753906)
24 SET(CMAKE_Fortran_COMPILER /usr/bin/x86_64-w64-mingw32-gfortran)
25 SET(CMAKE_AR:FILEPATH /usr/bin/x86_64-w64-mingw32-ar)
26 SET(CMAKE_RANLIB:FILEPATH /usr/bin/x86_64-w64-mingw32-ranlib)