Simulator for Pragyan CodeCharacter 2020
-
Download & Install CMake (>= v3.15.3)
-
Download & Install Protobuf
-
Install Clang++ (>=9.0.1) (Can install using
sudo apt-get install clang) -
Download Boost 1.71 (preferably in
/usr/local/lib/) -
cdto the Boost directory and build the system library by running./bootstrap.sh --prefix=. --with-libraries=system && ./b2 cxxflags=-std=c++14 install -
cdto your projects directory and rungit clone --recursive https://github.com/delta/codecharacter-simulator-2020.git&&git config core.hooksPath .githooks/ -
run
pip install cmake-format -
Install Clang-format using
sudo apt-get install clang-format -
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
-
sudo apt update
sudo apt install -y doxygen python3-pip
sudo python3 -m pip install sphinx_rtd_theme breathe -
Run
doxygen && cd docs/ && make html && cd ../at the root level of the project. -
The documentation files are built under
docs/build/html