aboutsummaryrefslogtreecommitdiff
SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_CROSSCOMPILING TRUE)

IF("${GNU_HOST}" STREQUAL "")
    SET(GNU_HOST i686-w64-mingw32)
ENDIF()

# specify the cross compiler
SET(CMAKE_C_COMPILER_TARGET ${GNU_HOST})
SET(CMAKE_C_COMPILER ${GNU_HOST}-gcc)
SET(CMAKE_CXX_COMPILER_TARGET ${GNU_HOST})
SET(CMAKE_CXX_COMPILER ${GNU_HOST}-g++)
SET(CMAKE_RC_COMPILER_TARGET ${GNU_HOST})
SET(CMAKE_RC_COMPILER ${GNU_HOST}-windres)