Skip to content

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

Notifications You must be signed in to change notification settings

huangsam/cpp-trial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPP Trial

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

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 the tool requirements are met, you can proceed with building, testing and formatting code.

Building code

To use cmake for building, run:

bash build.sh

From there, you can run binaries from build/bin.

./build/bin/main.out # for main executable
./build/bin/test.out # for GoogleTest executable

Testing code

To use ctest for testing, run:

bash test.sh

Formatting code

To use clang-format for formatting, run:

bash format.sh

Helpful resources

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published