Skip to content

svquick/cmake-exercise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Let's Fight With CMake, Docker, and Some Dependencies

Repository for the CMake exercise.

1. Build the Docker image

From the root of the cloned repository, run:

docker buildx build -t <image-name> .

2. Run the container and execute the project

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.

About

Repository for the CMake exercise of the SSE lecture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 84.1%
  • CMake 8.5%
  • Dockerfile 6.2%
  • Shell 1.2%