https://github.com/gabrielcformiga/manufacturing-cell-formation
https://github.com/gabrielcformiga/manufacturing-cell-formation
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gabrielcformiga/manufacturing-cell-formation
- Owner: GabrielCFormiga
- Created: 2025-05-19T11:48:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-19T14:00:00.000Z (about 1 year ago)
- Last Synced: 2025-06-30T19:51:54.986Z (about 1 year ago)
- Language: C++
- Size: 225 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C++ Meson Template
Simple template for C++ projects with [Meson Build System](https://mesonbuild.com/). This template follows this structure:
```
├── .clang-format
├── .clang-tidy
├── .gitignore
├── include
├── meson.build
├── README.md
└── src
├── main.cpp
└── meson.build
```
Here is an explanation of what is each component:
- `.clang-format`: C++ code formatter;
- `.clang-tidy`: C++ code linter;
- `.gitignore`: Set what git must ignore (compiler generated files, build directories, ...);
- `include/`: Directory to store the header files (`.hpp`);
- `src/`: Directory to store the source files (`.cpp`, `.cc`, ...);
- `src/meson.build`: Configure source files for Meson;
- `meson`: Configure Meson;
- `README.md`: Documentation file in markdown;
## Usage
#### 1. [Create a repository from this template](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template);
#### 2. Setup meson project name:
In the `meson.build`, you can change your project name to whatever you want:
```
project(
"",
...
)
```
#### 3. Setup the meson build:
Assuming that the `build/` is the release build directory:
```
meson setup build --buildtype=release
```
For debugging, setup a `build_debug/` directory:
```
meson setup build_debug --buildtype=debug
```
#### 4. Compile and run:
Compile the build:
```
meson compile -C
```
Run the the executable:
```
.//
```
#### 5. Write a `README.md` for your project.