set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_C_COMPILER i686-pc-mingw32-gcc)
set(CMAKE_CXX_COMPILER i686-pc-mingw32-g++)
set(CMAKE_RC_COMPILER i686-pc-mingw32-windres)
set(CMAKE_RC_COMPILE_OBJECT
    "<CMAKE_RC_COMPILER> -O coff <FLAGS> <DEFINES> <SOURCE> <OBJECT>")

set(CMAKE_FIND_ROOT_PATH /usr/local/i686-pc-mingw32)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

# FIXME: Disable pkg-config
set(PKG_CONFIG_EXECUTABLE pkgconfig-bogus)

set(CMAKE_SYSTEM_PROCESSOR "x86")

# FIXME: 
set(CMAKE_EXE_LINKER_FLAGS "-static-libstdc++")
