From ab3e2733ce12e38d53324da96281cf9e12a11fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Tue, 8 Feb 2011 09:29:42 +0100 Subject: [PATCH] Add build instructions for Windows to README. --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 7475462..6f4e20d 100644 --- a/README.md +++ b/README.md @@ -44,3 +44,29 @@ Now you have two basic choices of installing the application: $ cpack -G DEB # dpkg -i logdiag-0.0-Linux-x86_64.deb +# Building from sources on Windows + +First install CMake 2.8 and MinGW. Add both to the system path. +If you want to build an installation package, also install NSIS. + +Run the following command in the directory with source files +to automatically fetch and setup all dependencies: + > cmake -P Win32Depends.cmake + +Reserve a directory for an out-of-source build: + > mkdir build + > cd build + +Let CMake prepare the build: + > cmake .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release + +Now you can generate a package with CPack. You may choose between: + +1. An NSIS-based installation package: + > cpack -G NSIS + +2. A portable ZIP package: + > cpack -G ZIP + +By default, that is if you specify no generator, both packages are built. +