Skip to content

Template for reliable, cross-platform C++ project setup using cmake.

License

Notifications You must be signed in to change notification settings

kabasakalis/cmake-init

 
 

Repository files navigation

C++ Project Template

Forked and adapted from C++ CMake Project Template

[ADAPT]

Setup Guide

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 Build Status
Travis-CI macOS AppleClang 7.3 Build Status
Coverity Ubuntu 14.04 GCC 4.8, Clang 3.5 Coverity Build Status
CodeCov Test Coverage
Codedocs Documentation

Scenarios covered in cmake-init:

  1. Development

The project is contained in a source directory for active development.

binaries: ./build rpath: absolute paths to all dependencies datapath: ..

  1. 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: ..

  1. Installation (unix system install)

The project is installed globally on a system.

binaries: /usr/[local/]bin rpath: empty datapath: /usr/[local/]share/

About

Template for reliable, cross-platform C++ project setup using cmake.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 83.9%
  • Python 11.1%
  • CMake 2.6%
  • Makefile 0.7%
  • Shell 0.7%
  • M4 0.6%
  • Other 0.4%