/c-cpp-template

My updated C/C++ project template with LSP and Package Manager support

Primary LanguageMakefile

C/C++ project template

My barebones project structure for c and c++ with flat project structure. With barebones package manager

How it works

To build use this command:

make
# or
make all

To run executable use this command

make run

To initialize LSP for vim, emacs , or vscode

make lsp

To download packages

make package

Config

Edit config.mk

Package management

package management format

package1=("git url"
         "commit hash"
         "build command"
         "libpackage.a"
         "include dirs")

package2=("git url"
         "commit hash"
         "build command"
         "libpackage.a"
         "include dirs")
# then you need to add your package name in
PACKAGES="package1 package2"

NOTE: your package's build directory should prefereable be called build