aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-01-20 23:21:49 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-01-20 23:22:11 +0100
commit5bb6a05e1c56ebac7c378b3dcd8264d1142f5b6d (patch)
tree9b443047522719693cddd100605b7496b0117dd6 /README.md
parent733fb545804317d8ef821fcbb7f94e33e91a990d (diff)
downloadlogdiag-5bb6a05e1c56ebac7c378b3dcd8264d1142f5b6d.tar.gz
logdiag-5bb6a05e1c56ebac7c378b3dcd8264d1142f5b6d.tar.xz
logdiag-5bb6a05e1c56ebac7c378b3dcd8264d1142f5b6d.zip
Make MinGW-w64 cross-compilation work again
It has come to using pkg-config. :O
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
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
+