new-project-template
new-project-template copied to clipboard
A template to quickly start a new project
new-project template
A template to start up a new C++ project with the support for:
- CMake
- Conan
- Travis CI
- AppVeyor
Repository structure
This repository contains the following independent cmake-based projects:
./src- header-only project forunits.- project used for development needs that wraps./srcproject together with usage examples and unit tests./test_package- library installation and Conan package verification
Please note that the projects depend on cmake git submodule in the ./cmake/common
subdirectory.
Building, testing, and installation
For a detailed information on project compilation, testing and reuse please refer to doc/INSTALL.md.
Steps to start a new project
- Replace
mpwith the project namespace name in
CMakeLists.txtfiles- directory of project interface header files and source files including those
INSTALL.md
- Replace
new-projectwith new project name in allCMakeLists.txtfiles and quickly start a development of something really exciting :-) - Update
build.pywith proper packaging data
Available Conan Options
| Option | Default | Values | Description |
|---|---|---|---|
| shared | False | [True, False] | Generates shared library |
| fPIC | True | [True, False] | Generates position-independent code |
Environment variables
| Option | Default | Values | Travis CI | AppVeyor | Description |
|---|---|---|---|---|---|
| CONAN_RUN_TESTS | False | [True, False] | True | True | Enables compilation of all the tests and examples. Runs unit tests during Conan build |