-
Download Boost 1.68
-
cd
to the Boost directory and build the system library by running./bootstrap.sh --prefix=. --with-libraries=system && ./b2 cxxflags=-std=c++14 install
-
git clone --recursive https://github.com/delta/codecharacter-simulator.git
-
Install CMake (>= v3.11.1)
-
Install Protobuf
-
Install Clang++ (>=4.0)
-
mkdir build && cd build
-
export LD_LIBRARY_PATH=<repo_install_location>/lib
-
cmake .. -DCMAKE_INSTALL_PREFIX=<repo_install_location> -DBOOST_ROOT=<boost_download_location> -DCMAKE_CXX_COMPILER=clang++
-
make install
To run the simulator, <your_install_location>/bin/simulator
To run the unit tests, <your_install_location>/bin/test
Pass -DBUILD_PROJECT=<project_name>
to cmake to build only a specific module. Passing no_tests
as the project name builds everything but the unit tests.