Skip to content

huangsam/cpp-trial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Trial

GitHub Actions Workflow Status

Coding in C++ to explore tools like CMake and GoogleTest.

C++

Getting started

Please install tools like cmake and clang-format first. You can do this with Homebrew on Mac by running brew install cmake clang-format.

Once all tool requirements are met, you can proceed with building, testing and formatting code.

Build binaries

To use cmake for building, run:

# Run end-to-end build
make build

Run binaries

Now you can run the compiled binaries:

# Run main binary
make run

# Run test binary
make test

Format code

To use clang-format for formatting, run:

# Run clang-format on CPP and HPP files
make format

Helpful resources