/CppProjectCreator

Small Bash script to create a basic C++ project structure and cmake files.

Primary LanguageShellOtherNOASSERTION

cpp_proj

DON'T USE THIS for real projects. Not a flexible tool, stuffed 500 lines of bash into a single file, and the CMake generation isn't fantastic, nor is any CI/CD or package management included. Just a fun little activity, really.

Generates the project structure and default files to run, build, and test C++ projects.

Installation

$ cd <location to install>
$ git clone https://github.com/justend29/CppProjectCreator.git
$ cd CppProjectCreator
$ chmod ug+x cpp_proj
$ sudo ln -s <location you installed>/CppProjectCreator/cpp_proj /usr/local/bin/cpp_proj

Requirements

Of course you're using arch/manjaro linux

  1. Get CMake
$ yay -S cmake
  1. Get Ninja (platform agnostic Make alternative)
$ yay -S ninja

Run script

$ cpp_proj <proj> <target>

Subsequent runs will ask before modifying

Great CMake Resources

TODO

  • Add default cmake install rules
  • Add conan support
  • Get rid of the single giant, gross script