|
|
1.1 root 1: # This Toolchain file is used to cross compile the windows
2: # version of Hatari under linux using mingw32
3: # use : cmake -DCMAKE_TOOLCHAIN_FILE=Toolchain-mingw32.cmake
4:
5: # The name of the target operating system
6: SET(CMAKE_SYSTEM_NAME Windows)
7:
8: # mingw32 versions of the different tools
9: # (change these depending on your system settings)
10: SET(CMAKE_C_COMPILER i586-pc-mingw32-gcc)
11: SET(CMAKE_CXX_COMPILER i586-pc-mingw32-g++)
12: SET(CMAKE_RC_COMPILER i586-pc-mingw32-windres)
13:
14: # Base directory for the target environment
15: SET(CMAKE_FIND_ROOT_PATH /usr/i586-pc-mingw32/sys-root/mingw )
16:
17: # FindSDL.cmake doesn't search correctly in CMAKE_FIND_ROOT_PATH
18: # so we force SDLDIR here
19: set ( ENV{SDLDIR} ${CMAKE_FIND_ROOT_PATH}/include/SDL )
20:
21: # Adjust the default behaviour of the FIND_XXX() commands:
22: # search headers and libraries in the target environment, search
23: # programs in the host environment
24: set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
25: set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
26: set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
27:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.