Coding in C++ to explore tools like CMake and GoogleTest.
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.
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
To use ctest
for testing, run:
bash test.sh
To use clang-format
for formatting, run:
bash format.sh
- https://cplusplus.com/
- https://en.cppreference.com/w/
- https://google.github.io/styleguide/cppguide.html
- https://google.github.io/googletest/reference/assertions.html
- https://cmake.org/cmake/help/git-master/manual/cmake-commands.7.html
- https://github.com/fffaraz/awesome-cpp
- https://github.com/oz123/awesome-c