To adapt this template, you just need to edit the 'CMakeLists.txt' file with project information.
Also you can edit files in the root folder to suit your needs.
This template was made by Dorian Bachelot.
This template use CMake and Conan (optional but recommended). Conan is a package manager for C/C++ written in python. All is automated thanks to these tools.
To add a new dependency, just edit the 'DEPENDENCIES' file and add the dependency name. To search a package, please visit: https://conan.io/center/ or https://bintray.com/bincrafters/public-conan.
The 'DEPENDENCIES' file has many options that you can use like checking on the system if a requested dependency is on already installed or also discard the version check (for the system check only). To see every option, you can open the 'DEPENDENCIES' file and you will find documentation at the top of it.
Also, this file can be adapted by each user by creating a copy with the name 'DEPENDENCIES.local' which will be ignored by git. This allows a more "user" personalization of the dependency system.
You can also add a FindXXX.cmake file in the etc/cmake directory if the package finder script is not present in cmake by default.
If you don't want to use Conan, you can specify dependency path (by continuing to use the same 'DEPENDENCIES' file) with the CMake options ( is case sensitive, it needs to have the same case as in the 'DEPENDENCIES' file):
> cmake .. -D<package name>_DEPENDENCY_PATH=<path>
- CMake 3.12.0 or newer,
- Conan (optional),
- Python (optional).
Firstly, clone this repository (help here).
In all cases you need to specify to CMake the build type ('Debug' or 'Release') with this option:
> -DCMAKE_BUILD_TYPE=Debug
Install dependencies:
> sudo apt-get install cmake g++ python
> sudo pip install conan
Build (in the 'build' folder, for example):
> cmake .. -DCMAKE_BUILD_TYPE=Debug
> make
Binaries are in the 'build/bin' folder.
Install dependencies:
- CMake: https://cmake.org/download/,
- A compiler (for example MSVC): https://visualstudio.microsoft.com/,
- Conan: https://conan.io/,
- Python: https://www.python.org/ (optional).
Build (in the 'build' folder, for example):
> cmake .. -DCMAKE_BUILD_TYPE=Debug
> cmake --build .
Binaries are in the 'build/bin' folder.
Install dependencies (we will use Homebrew here) :
> brew install python
> brew install conan
Build (in the 'build' folder, for example):
> cmake .. -DCMAKE_BUILD_TYPE=Debug
> cmake --build .
Binaries are in the 'build/bin' folder in the bundle ".app" format.
Read the "CONTRIBUTING.md" file.
MIT license. See LICENSE.TXT for details.
The current main maintainer of this template is Dorian Bachelot [email protected].