source: PSPA/madxPSPA/cmake/ToolChains/Windows-MinGW32.cmake @ 430

Last change on this file since 430 was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 865 bytes
Line 
1# An example of how the cross compiler for mingw could look like
2# Assuming you are ona Unix platform and want to build for Windows.
3# You need to modify this with your own paths/binary names...
4
5# the name of the target operating system
6SET(CMAKE_SYSTEM_NAME Windows)
7
8# which compilers to use for C and C++
9SET(CMAKE_C_COMPILER i486-mingw32-gcc)
10SET(CMAKE_CXX_COMPILER i486-mingw32-g++)
11SET(CMAKE_Fortran_COMPILER i486-mingw32-gfortran)
12SET(CMAKE_RC_COMPILER i486-mingw32-windres)
13
14# here is the target environment located
15SET(CMAKE_FIND_ROOT_PATH  /usr/i486-mingw32)
16
17# adjust the default behaviour of the FIND_XXX() commands:
18# search headers and libraries in the target environment, search
19# programs in the host environment
20set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
21set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
22set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
23
Note: See TracBrowser for help on using the repository browser.