No description
  • Shell 66.1%
  • CMake 28.4%
  • C++ 5.5%
Find a file Use this template
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Shuo Feng c38189e191
template cleanup (#5)
* template cleanup

* Fix CTest test case discovery for doctest (#6)

* Initial plan

* Add test.sh script and enable tests in CMakeLists.txt

Co-authored-by: vonhyou <[email protected]>

* Improve test.sh: add VCPKG_ROOT check and configurable BUILD_TYPE

Co-authored-by: vonhyou <[email protected]>

* Use ctest --test-dir instead of cd for better practices

Co-authored-by: vonhyou <[email protected]>

* Fix test detection: add enable_testing() and use doctest_discover_tests()

Co-authored-by: vonhyou <[email protected]>

* Cleanup: remove test.sh and add generated scripts to .gitignore

Co-authored-by: vonhyou <[email protected]>

* Revert .gitignore: generated scripts should be tracked

Co-authored-by: vonhyou <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: vonhyou <[email protected]>

* Fix duplicate add_subdirectory causing CMake error in scaffold.sh (#7)

* Initial plan

* Fix duplicate add_subdirectory in scaffold.sh

Co-authored-by: vonhyou <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: vonhyou <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
2026-01-18 09:04:23 -05:00
.github/workflows Add one-time setup script that generates minimal run.sh and test.sh with test subdirectory (#4) 2026-01-18 08:21:20 -05:00
src Set up project (#1) 2026-01-15 11:45:06 -05:00
tests template cleanup (#5) 2026-01-18 09:04:23 -05:00
.gitignore Add one-time setup script that generates minimal run.sh and test.sh with test subdirectory (#4) 2026-01-18 08:21:20 -05:00
CMakeLists.txt template cleanup (#5) 2026-01-18 09:04:23 -05:00
LICENSE Initial commit 2026-01-14 16:53:33 -05:00
README.md Add one-time setup script that generates minimal run.sh and test.sh with test subdirectory (#4) 2026-01-18 08:21:20 -05:00
scaffold.sh template cleanup (#5) 2026-01-18 09:04:23 -05:00
vcpkg.json Add one-time setup script that generates minimal run.sh and test.sh with test subdirectory (#4) 2026-01-18 08:21:20 -05:00

C++ Project Template

Modern C++ project template with vcpkg dependency management.

Requirements

  • C++23 compiler
  • CMake 3.28+
  • vcpkg

Setup

./scaffold.sh

This will prompt for project name, create a feature branch, update configurations, and generate build scripts.

Build and Run

./run.sh   # Build and run
./test.sh  # Build and test