Skip to content

Protobuf project template for building C++ projects with Protocol Buffers inside a Docker container.

Notifications You must be signed in to change notification settings

michal34512/proto-devcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Protobuf Template Project

This is a C++ template project that demonstrates the use of Protocol Buffers (Protobuf) in a development container (devcontainer) within Visual Studio Code. The project is pre-configured with CMake and a Makefile to streamline the build, run, and development process, providing an efficient starting point for working with Protobuf in C++.

Installation Steps

  1. Clone the repo
    git clone https://github.com/michal34512/proto-devcontainer.git
  2. Navigate to the project directory
    cd proto-devcontainer
  3. Open the project in Visual Studio Code
    code .
  4. Reopen in Devcontainer
    Once VS Code is open, press F1, type Reopen in Container, and select the command to launch the devcontainer environment.
  5. Wait for the Devcontainer to build
    After the devcontainer is set up, open the terminal within VS Code.
  6. Build and run the project
    make all

Project Structure

  • Makefile — Contains the rules to compile, run, and clean the project.
  • CMakeLists.txt — CMake configuration for the project.
  • src/ — Source files for the project.
  • build/ — Directory created for building the project.

Makefile Targets

Target Description
all Builds and runs the project.
build Compiles the project in the build/ directory.
run Runs the compiled binary.
clean Removes the build/ directory and cleans the project.
help Displays help and usage instructions.

About

Protobuf project template for building C++ projects with Protocol Buffers inside a Docker container.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published