From 5bb6a05e1c56ebac7c378b3dcd8264d1142f5b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Tue, 20 Jan 2015 23:21:49 +0100 Subject: Make MinGW-w64 cross-compilation work again It has come to using pkg-config. :O --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index fffe466..054e0d8 100644 --- a/README.md +++ b/README.md @@ -83,3 +83,15 @@ Now you can generate a package with CPack. You may choose between: By default, that is if you specify no generator, both packages are built. +## Cross-compiling for Windows + +Just install MinGW-w64 and let automation take care of the rest. + + $ cmake -P Win32Depends.cmake + $ mkdir build + $ cd build + $ cmake .. \ + -DCMAKE_TOOLCHAIN_FILE=../ToolchainDebianMinGWW64.cmake \ + -DCMAKE_BUILD_TYPE=Release + $ cpack -G ZIP + -- cgit v1.2.3