C++

With CMake and Visual Studio Express 12.0 (VS2013)

Initial configuration

Ensure you have installed:

Get the source

Execute the following step to download the latest source code

C:\> git clone https://github.com/lattice/cpp-lattice.git

Retrieve dependecies

Execute the following commands within a command shell to download all dependencies:

1. Getting dependencies

Note: The 'Debug'-configuration is also supported.

Build Lattice Network project

Execute the following commands within a command shell to build the project:

2. Generate solution with CMake

First generate the lattice solution and visual studio project files

Note: In-source build (running cmake in root directory) is not currently supported.

3. Compile with Visual Studio

double click on lattice.sln, open open project and then click Build, or:

compile from command line

Note: The 'Debug'-configuration is also supported.

Fresh builds

After setting up the dependencies and running your first successful build, unless there are changes to any of the dependencies, you can make a fresh build from the latest code much faster by just fetching the new code and rebuilding.

  1. In the directory C:\cpp-lattice>, run the command git pull.

  2. Enter C:\cpp-lattice\build> and remove CMakeCache.txt

  3. Re-run steps 2 & 3.

Troubleshooting

Last updated