From 9c7d929ec5de8ec922d17a044853ee17f5273906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Mon, 2 Sep 2013 22:34:54 +0200 Subject: [PATCH] Readme: CMake bash code formating --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 8460d2d..031a050 100644 --- a/README.md +++ b/README.md @@ -96,19 +96,25 @@ Solutions for Visual Studio 2008 and 2010 are provided in the "msvc/" directory, A CMake configuration file is also provided for better multiplatform support and testing. Typical generic build (see also "build.bat" or "./build.sh"): + +```bash mkdir build cd build cmake .. # cmake .. -G "Visual Studio 10" # for Visual Studio 2010 cmake --build . # make ctest . # make test +``` Generating the Linux Makefile, building in Debug and executing the tests: + +```bash mkdir Debug cd Debug cmake .. -DCMAKE_BUILD_TYPE=Debug cmake --build . # make ln -s ../examples examples ctest . # make test +``` ### Continuous Integration