Repository for the CMake exercise.
The Repository with the solution can be found here: enoghadd solution
I used Docker under Windows 11 with WSL2 backend.
To build the Docker image for this project, run the following command in your terminal from the directory containing the Dockerfile:
docker buildx build --no-cache -t <image-name> .To run the Docker container use the following command:
docker run --rm -it <image-name>You will find yourself in a bash shell inside the container in the directory /mnt/hst, where the project has been cloned.
If you want to mount a local directory into the container, go into you directory and use the following command:
docker run --rm -it --mount type=bind,source="$(pwd)",target=/mnt/hst <image-name>Run in the container:
./build_and_run.shThe script will create a build directory, run CMake to configure the project, compile it, and then execute the resulting binary with a sample configuration file. The dockerfile has impplemented the bonus part, where the container uses v0.6.3 of yaml-cpp instead of the latest version.