LearnC++
Setup
Make scripts executable:
chmod +x create_cpp_project.sh
chmod +x add_makefile.sh
Create a New Project
Creates a new folder with a main.cpp and a lightweight Makefile.
./create_cpp_project.sh <ProjectName>
Example:
./create_cpp_project.sh MyNewProject
Add Makefile to Existing Project
Adds a lightweight Makefile to an existing folder.
./add_makefile.sh <ExistingFolder>
Example:
./add_makefile.sh OldProject
Build Commands (inside each project folder)
make # Build release version (optimized)
make debug # Build debug version
make dev # Build development version (warnings as errors)
make clean # Remove binaries and object files
make help # Show available commands
make run # Run the build