Skip to content

Commit

Permalink
Add installation documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dglmoore committed Oct 24, 2017
1 parent e3f9387 commit b2f08f4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/src/getting-started.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
= Getting Started

== Installation
To build *ginger*, you will need to have https://cmake.org/[CMake]. For most
you can use your package manager, e.g. `apt-get`, `pacman` or `yum` on Linux
or `homebrew`, `macports` or `fink` on OS X.

=== Linux, OS X, and Windows (Bash, MinGW and Cygwin)
Once CMake is installed, building, testing and installing the library is a snap
[source]
----
$ cmake . -DCMAKE_BUILD_TYPE=Release
$ make all tests
$ sudo make install
----

=== Windows with MSVC
Building with MSVC is a bit more involved. Open the Visual C++ MSBuild command
prompt (should be in your start menu). You can then run cmake build and test
from the prompt:
[source]
----
$ cmake -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 14 2015"
$ msbuild /p:Configuration=Release ALL_BUILD.vcxproj
$ test\Release\ginger_unittest.exe
----
Installation requires the user to manually copy the headers and libraries to
wherever the user would like.
4 changes: 4 additions & 0 deletions docs/src/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ v0.2.0, October 2017
:toclevels: 3
:source-highlighter: prettify
:stem: latexmath

:leveloffset: 1

include::getting-started.adoc[]

0 comments on commit b2f08f4

Please sign in to comment.