From 48d353a5cb22e596f12946ef7202e9946679e2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sat, 13 Oct 2012 19:07:56 +0200 Subject: Make MinGW{,-w64} crosscompilation working. Also fix the 7za download path in Win32Depends.cmake. --- ToolchainDebianMinGWW64.cmake | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ToolchainDebianMinGWW64.cmake (limited to 'ToolchainDebianMinGWW64.cmake') diff --git a/ToolchainDebianMinGWW64.cmake b/ToolchainDebianMinGWW64.cmake new file mode 100644 index 0000000..a1f4378 --- /dev/null +++ b/ToolchainDebianMinGWW64.cmake @@ -0,0 +1,13 @@ +set (CMAKE_SYSTEM_NAME "Windows") +set (CMAKE_SYSTEM_PROCESSOR "x86") + +set (CMAKE_C_COMPILER "i686-w64-mingw32-gcc") +set (CMAKE_CXX_COMPILER "i686-w64-mingw32-g++") +set (CMAKE_RC_COMPILER "i686-w64-mingw32-windres") + +set (CMAKE_FIND_ROOT_PATH "/usr/i686-w64-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) + -- cgit v1.2.3