https://github.com/lchsk/cookiecutter-c-project
Cookiecutter template for C projects
https://github.com/lchsk/cookiecutter-c-project
c cookiecutter cookiecutter-template
Last synced: 5 months ago
JSON representation
Cookiecutter template for C projects
- Host: GitHub
- URL: https://github.com/lchsk/cookiecutter-c-project
- Owner: lchsk
- License: gpl-3.0
- Created: 2018-08-06T23:36:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-20T22:19:08.000Z (over 7 years ago)
- Last Synced: 2025-07-27T09:32:53.292Z (11 months ago)
- Topics: c, cookiecutter, cookiecutter-template
- Language: CMake
- Homepage:
- Size: 17.6 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# Cookiecutter template for C projects
Generate a new C project with a quick cookiecutter command:
```
$ cookiecutter cookiecutter-c-project
```
## Features
- Generates a new C project built with CMake
- It can optionally include installation commands
- It can optionally generate configuration for building `DEB` and `RPM` packages with CPack
- It generates a `man` page
- It can optionally add CMake configuration for Glib and Curses libraries
## Variables
| Variable | Description |
|----------------|---------------------|
| `project_name` | Name of the project |
| `project_short_description` | Short description of the project |
| `license` | License e.g. `GPLv3` |
| `author_name` | Author's name |
| `author_email` | Author's email |
| `c_standard` | C language standard: `99`, `90`, `11` |
| `add_installation` | If `y` then installation command (`make install`) will be generated |
| `use_cpack` | If `y` then commands to generate `DEB` and `RPM` packages will be added |
| `add_glib` | If `y` then it will be built with Glib library |
| `add_curses` | If `y` then it will be built with Curses library |