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 tool requirements are met, you can proceed with building, testing and formatting code.
To use cmake
for building, run:
# Run end-to-end build
make build
Now you can run the compiled binaries:
# Run main binary
make run
# Run test binary
make test
To use clang-format
for formatting, run:
# Run clang-format on CPP and HPP files
make format
- 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