This is a simple C++23 project template. It uses a Makefile to compile and clean up objects & binaries. The project is strucutred to follow the app/core framework. Application specific code goes in the app directory, reusable or general code goes in the core directory, and any platform-spcific code goes in core/os/. A simple test suite is also included so that test cases for different code modules can be easily written and executed.
- C++23 compatible compiler
- Make
make
make run # Builds and runs the app
make help # Outputs all available make commands in the makefile
- Create a cpp file for the module you want to test in tests/
- Add your test code to the newly created file
- Declare the function in tests/tests.h
- Add Run(TestFunction); in tests/test_runner.cpp
See the sample tests included for reference.
make test # Build and run all tests
make build-test # Build the tests without running them
- Chris Manlove