Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bersen66/project-template
Template for conan + cmake c++ applications.
https://github.com/bersen66/project-template
benchmark cmake conan cpp docker fmt gtest project-template
Last synced: about 2 months ago
JSON representation
Template for conan + cmake c++ applications.
- Host: GitHub
- URL: https://github.com/bersen66/project-template
- Owner: bersen66
- Created: 2022-09-14T08:15:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T20:53:01.000Z (over 1 year ago)
- Last Synced: 2024-10-31T20:07:21.236Z (3 months ago)
- Topics: benchmark, cmake, conan, cpp, docker, fmt, gtest, project-template
- Language: CMake
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# project-template
Template for cmake c++ projects.## Installation:
Requires [Conan](https://conan.io/center/) and CMake.
They can be installed by:
```shell
pip install conan
pip install cmake
```
### Build your app in debug mode:```shell
mkdir cmake-build-debug
cd cmake-build-debug
conan install .. --build=missing
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTING=ON -DENABLE_BENCHMARKS=ON ..
cmake --build .
```### Build your app in release mode:
```shell
mkdir cmake-build-release
cd cmake-build-release
conan install .. --build=missing
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=OFF -DENABLE_BENCHMARKS=OFF ..
cmake --build .
```### Run template:
```shell
cd
./TEMPLATE
```## Usage:
* Add external dependencies via [conan package manager](https://conan.io/center/)
* All unit tests must be in tests folder
* All benchmarks must be in benchmarks folder
* All headers must be in include folder
* All sources must be in src folder