Repository for the CMake exercise.
From the root of the cloned repository, run:
docker buildx build -t <image-name> .Run the container and bind-mount the current directory into /mnt/hst inside the container:
docker run -it \
--mount type=bind,source="$(pwd)",target=/mnt/hst \
<image-name>When the container starts, it will automatically run the build_and_run.sh script. This script will:
- Configure the project with CMake
- Build and compile the sources
- Run the compiled executable ./main If everything is set up correctly, you will see the success output from ./main.