OpenRCT2/CMakeLists_mingw.txt

29 lines
956 B
Plaintext
Raw Permalink Normal View History

2015-09-20 12:02:09 +02:00
SET(CMAKE_SYSTEM_NAME Windows)
2018-01-28 22:20:49 +01:00
SET(COMPILER_PREFIX i686-w64-mingw32-)
SET(CMAKE_C_COMPILER ${COMPILER_PREFIX}gcc)
SET(CMAKE_CXX_COMPILER ${COMPILER_PREFIX}c++)
SET(CMAKE_RC_COMPILER ${COMPILER_PREFIX}windres)
SET(CMAKE_PKGCONFIG_EXECUTABLE ${COMPILER_PREFIX}pkg-config)
SET(PKG_CONFIG_EXECUTABLE ${COMPILER_PREFIX}pkg-config)
SET(CMAKE_SYSTEM_PROCESSOR x86)
2014-05-20 18:35:27 +02:00
if(APPLE)
2015-05-25 21:38:33 +02:00
SET(TARGET_ENVIRONMENT /usr/local/mingw-w32-bin_i686-darwin/i686-w64-mingw32)
else()
SET(TARGET_ENVIRONMENT /usr/i686-w64-mingw32)
endif(APPLE)
2014-05-20 18:35:27 +02:00
# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH ${TARGET_ENVIRONMENT})
2014-05-20 18:35:27 +02:00
# adjust the default behaviour of the FIND_XXX() commands:
2014-05-24 05:16:52 +02:00
# search headers and libraries in the target environment, search
2014-05-20 18:35:27 +02:00
# programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
# Enable Unicode
add_compile_options(-municode)