This project is a ready-to-use starting point for developing C++ applications or libraries. It is designed to simplify the setup process and provide a solid foundation for C++ projects that require unit testing using Google Test and build management using CMake. It will automatically update Google Test submodules.
- Clone this project
git clone https://github.com/PawelLawrynowicz/gtest_template
- Make a build directory and enter it and compile the project
cd gtest_template
cmake -B build
cmake --build build
- Run the main program or the tests
./main
or./tests