1 # http://www.cmake.org/Wiki/CmakeMingw
3 # Copyright (c) 2006-2014 Mathieu Malaterre <mathieu.malaterre@voxxl.com>
5 # Redistribution and use is allowed according to the terms of the New
7 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
10 # the name of the target operating system
11 set(CMAKE_SYSTEM_NAME Windows)
13 # which compilers to use for C and C++
14 set(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
15 set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
16 set(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
18 # here is the target environment located
19 set(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
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)