Forked and adapted from C++ CMake Project Template
cmake-init is a copy and paste template, that provides the following features:
- Cross Platform
- Windows
- Linux
- Mac
- Libraries, Applications, Testing template
- Documentation template
- Installation, Packaging template
- CMake find script template for defined libraries
The files of cmake-init are an instantiation of the templates containing:
- Example app
- Example lib
- Example test
- Example documentation
- Example package
Service | System | Compiler | Status |
---|---|---|---|
Travis-CI | Ubuntu 14.04 | GCC 4.8, Clang 3.5 | |
Travis-CI | macOS | AppleClang 7.3 | |
Coverity | Ubuntu 14.04 | GCC 4.8, Clang 3.5 | |
CodeCov | |||
Codedocs |
Scenarios covered in cmake-init:
- Development
The project is contained in a source directory for active development.
binaries: ./build rpath: absolute paths to all dependencies datapath: ..
- Installation (default)
The project is installed in a self-contained directory, ready for being moved or copied to another location or computer.
binaries: ./bin rpath: $ORIGIN/../lib datapath: ..
- Installation (unix system install)
The project is installed globally on a system.
binaries: /usr/[local/]bin rpath: empty datapath: /usr/[local/]share/