/projgen

A simple C++ project creation program

Primary LanguageC++BSD 2-Clause "Simplified" LicenseBSD-2-Clause

projgen

Generate C++ projects with ease!

What can this program do?

  • Creates a folder with name of the project
  • Creates include, lib, and src
  • Creates Makefile and a C++ source file with sample code
  • Allows you to use custom build scripts!

How to use this program?

  • Type in the name of project as the first parameter
  • Optionaly enter the path of the custom Makefile you wish to use

How can I create a custom Makefile sample code?

  • You create a Makefile
  • You create the Makefile code as usual
  • Instead of the (for example) main.cpp you put ^.cpp
  • ^ means the name of the project
  • Please note that source files (by default) are in the src folder
  • Video explaning how to do it (Note this video is outdated, yet should still work)

Example custom Makefile

g++ src/^.cpp -o ^ -Iinclude -Llib
(^ means the name of the project)
So what will be created is (project name is game)
g++ src/game.cpp -o game -Iinclude -Llib

Sample Makefiles

These are located at makefile_sample

TODO:

  • Make one big file for custom Makefile and Sample Code
  • Add more .PG sample files