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
- Host: GitHub
- URL: https://github.com/damienstanton/cxx
- Owner: damienstanton
- License: apache-2.0
- Created: 2020-09-10T21:58:02.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2021-06-01T14:50:48.000Z (about 5 years ago)
- Last Synced: 2025-03-05T21:58:18.616Z (over 1 year ago)
- Topics: cpp, starter, zsh
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.