2016-07-24 13:55:33 +00:00
|
|
|
set(CMAKE_SYSTEM_NAME Windows)
|
2015-07-05 05:45:39 +00:00
|
|
|
|
2016-07-24 13:55:33 +00:00
|
|
|
set(TRIPLE x86_64-w64-mingw32)
|
2015-07-05 05:45:39 +00:00
|
|
|
|
2016-07-24 13:55:33 +00:00
|
|
|
set(CMAKE_C_COMPILER ${TRIPLE}-gcc)
|
|
|
|
set(CMAKE_CXX_COMPILER ${TRIPLE}-g++)
|
|
|
|
set(CMAKE_RC_COMPILER ${TRIPLE}-windres)
|
2015-07-05 05:45:39 +00:00
|
|
|
|
2016-07-24 13:55:33 +00:00
|
|
|
set(CMAKE_FIND_ROOT_PATH /usr/${TRIPLE})
|
2015-07-05 05:45:39 +00:00
|
|
|
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
2016-07-24 13:55:33 +00:00
|
|
|
|
|
|
|
set(ENV{PKG_CONFIG_LIBDIR} /usr/${TRIPLE}/lib/pkgconfig)
|