a folder named build should be created all following commands must be while in build
mkdir build
cd build
Build project using cmake, required version > 3.2 Using "Unix makefiles" as a generator
cmake .. -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles"
make all
Run toplex.exe
./src/toplex.exe
Make (if needed) and Run the tests
make toplex_test
./test/toplex_test.exe
this folder structure is based on https://raymii.org/s/tutorials/Cpp_project_setup_with_cmake_and_unit_tests.html