Prerequisites

The build requires that git and CMake and a modern C++ compiler (Microsoft Visual Studio 2012 & 2013 and Clang on osx have been tested)

Windows

Chocolatey

On windows I install Chocolatey as a package manager to install the rest of the prerequisites. Then I can:

cinst git.commandline
cinst cmake

Clone

Windows

mkdir C:\rxcpp
git clone --recursive https://git01.codeplex.com/rxcpp C:\rxcpp

Osx

git and CMake should already be installed.

Use CMake to make some build files

Create directory to store generated files

Make a directory to store the build files for a build flavor, this does not have to be under rxcpp.

Windows

nmake Example

mkdir C:\rxcpp\projects\nmake
mkdir C:\rxcpp\projects\nmake\debug
mkdir C:\rxcpp\projects\nmake\release

Visual Studio 2013 Example

mkdir C:\rxcpp\projects\vs2013

Run CMake

Windows

These CMake commands must be run in the Developer Command Prompt for the version of Visual Studio that you would like to use to compile the project.

nmake

cd C:\rxcpp\projects\nmake\debug\
CMake -G "NMake Makefiles"  -DCMAKE_BUILD_TYPE=Debug C:\rxcpp\projects\CMake
cd C:\rxcpp\projects\nmake\release\
CMake -G "NMake Makefiles"  -DCMAKE_BUILD_TYPE=Release C:\rxcpp\projects\CMake

Visual Studio 2013

Use "Visual Studio 11" if "Visual Studio 12" is not supported by CMake.
cd C:\rxcpp\projects\vs2013
CMake -G "Visual Studio 12" C:\rxcpp\projects\CMake

Osx

make

cd C:\rxcpp\projects\make\debug\
CMake -G "Unix Makefiles"  -DCMAKE_BUILD_TYPE=Debug C:\rxcpp\projects\CMake
cd C:\rxcpp\projects\make\release\
CMake -G "Unix Makefiles"  -DCMAKE_BUILD_TYPE=Release C:\rxcpp\projects\CMake

XCode

cd C:\rxcpp\projects\xcode
CMake -G "Xcode" C:\rxcpp\projects\CMake

Build

Windows

nmake

nmake must be run in the Developer Command Prompt for the version of Visual Studio that you would like to use to compile the project.
cd C:\rxcpp\projects\nmake\debug\
nmake
cd C:\rxcpp\projects\nmake\release\
nmake

Visual Studio 2013

Open the solution in C:\rxcpp\projects\vs2013 using Visual Studio 2013. Type F7 or F5.

Last edited Feb 19, 2014 at 3:44 PM by kirkshoop, version 1