cmake-cpp-starter-kit
cmake >= 3.11
gcc >= 7 or clang >= 5 (To Support c++17)
(Optional) Ninja >= 1.10.0 (For faster build)
# Create build directory
cmake -S . -B build
# Or build with Ninja (Recommend)
# cmake -S . -B buld -GNinja
# Run build
cmake --build build
# Run Application
./build/main
# Run Test
cmake --build build --target test
# Format your code
cmake --build build --target format
- Generate
compile-commands.json
-
abseil
support -
clang-format
support -
googletest
support