diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-01-20 23:21:49 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-01-20 23:22:11 +0100 |
commit | 5bb6a05e1c56ebac7c378b3dcd8264d1142f5b6d (patch) | |
tree | 9b443047522719693cddd100605b7496b0117dd6 /README.md | |
parent | 733fb545804317d8ef821fcbb7f94e33e91a990d (diff) | |
download | logdiag-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.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 + |