An open API service indexing awesome lists of open source software.

https://github.com/damienstanton/cxx

Self contained C++ file starter and build script
https://github.com/damienstanton/cxx

cpp starter zsh

Last synced: 6 months ago
JSON representation

Self contained C++ file starter and build script

Awesome Lists containing this project

README

          

# cxx

This is a small script and C++ build template suitable for small programming
challenges or proofs of concept.

Requirements:
- `llvm`
- `coc-clangd`
- `bear`
- `gnu make`

## Usage

- To create a new file from the template:

```console
$ make new f=xyz.cpp
New file "xyz.cpp" created from template
```

- To compile the file

```console
$ ./build xyz.cpp
Compiling xyz.cpp...
Executable "xyz" built without errors
```

- Running the binary:

```console
$ ./xyz
OK
```

- Clearing out the workspace

```console
$ make clean
All *.cpp files are removed from the workspace
```

© 2020-2021 Damien Stanton

See LICENSE for details.