7cf0edd
SET(CMAKE_SYSTEM_NAME Windows)
7cf0edd
7cf0edd
# specify the cross compiler
7cf0edd
SET(CMAKE_C_COMPILER /usr/bin/i686-pc-mingw32-gcc)
7cf0edd
SET(CMAKE_CXX_COMPILER /usr/bin/i686-pc-mingw32-g++)
7cf0edd
7cf0edd
# where is the target environment
7cf0edd
SET(CMAKE_FIND_ROOT_PATH /usr/i686-pc-mingw32/sys-root/mingw)
7cf0edd
7cf0edd
# search for programs in the build host directories
7cf0edd
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
7cf0edd
# for libraries and headers in the target directories
7cf0edd
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
7cf0edd
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)