Skip to content

Building for Windows

Johan Sköld edited this page Jul 10, 2016 · 1 revision

General build steps for Visual Studio:

mkdir build-windows
cd build-windows
cmake ..

Then open and build the sc.sln file using your preferred method. If you want to specify the version of Visual Studio to generate projects for, you may do so by telling cmake which generator to use.

To generate VS2010 projects:

cmake -G "Visual Studio 10 2010" ..

Or to generate VS2015 projects:

cmake -G "Visual Studio 14 2015" ..

Invoke cmake --help to list all the available Visual Studio versions supported by your cmake version.

64-bit

In order to generate 64-bit projects for Visual Studio, append the string Win64 to the generator name:

cmake -G "Visual Studio 10 2010 Win64" ..

MinGW

This library may also be built and used with MinGW:

cmake -G "MinGW Makefiles" ..

Or if you are using MSYS:

cmake -G "MSYS Makefiles" ..
Clone this wiki locally