Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/savenkovigor/cppfronttemplate
Simple conan/cmake/cpp template project
https://github.com/savenkovigor/cppfronttemplate
cmake conan cpp cppfront
Last synced: 2 months ago
JSON representation
Simple conan/cmake/cpp template project
- Host: GitHub
- URL: https://github.com/savenkovigor/cppfronttemplate
- Owner: SavenkovIgor
- License: mit
- Created: 2022-06-22T14:51:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-13T23:33:34.000Z (5 months ago)
- Last Synced: 2024-10-09T19:22:48.948Z (2 months ago)
- Topics: cmake, conan, cpp, cppfront
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cppfront project template
This is a template repository for C++ projects that use `cppfront`, `CMake`, `conan` and `fmt` library as usage example.
[![.github/workflows/Build.yml](https://github.com/SavenkovIgor/cpp-template/actions/workflows/Build.yml/badge.svg)](https://github.com/SavenkovIgor/cpp-template/actions/workflows/Build.yml)
## Project structure
```bash
├── .github/workflows/Build.yml # Github actions build script
├── src/main.cpp2 # Main cpp2 file
├── CMakeLists.txt # Cmake file
├── conanfile.py # Conan file with cppfront dependency
└── project.py # Main project script
```## Getting Started
To use this template, click the "Use this template" button at the top of the repository.
## Dependencies
- Conan2
- Cmake
- Cppfront
- fmt (9.0.0) - just for example. You can remove it from `conanfile.py` and `main.cpp2` if you don't need it.## :hammer_and_wrench: Build
To run this project you can use a script
```bash
./project.py --install --build --run
```or you can run commands from script manually:
```bash
# Install dependencies
conan install -of ./conanfiles -pr:h=./conan_profile/default -pr:b=./conan_profile/default --build=missing ./# Build project
conan build -of ./conanfiles ./# Run resulting binary
./conanfiles/build/Release/cpp_template
```## Contributing
If you would like to contribute to this project, please fork the repository and submit a pull request.