GithubHelp home page GithubHelp logo

xy365 / cmake-init Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cginternals/cmake-init

0.0 1.0 0.0 1.41 MB

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

License: MIT License

CMake 2.31% Makefile 0.70% C++ 84.16% M4 0.63% C 0.35% Python 11.12% Shell 0.65% Objective-C 0.08%

cmake-init's Introduction

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 Build Status
Travis-CI macOS AppleClang 7.3 Build Status
AppVeyor Windows MSVC 2013
MSVC 2015
MSVC 2017
Build status
Jenkins



Ubuntu 14.04



GCC 4.7
GCC 4.8
GCC 4.9
GCC 5.4
Clang 3.8
Build Status
Build Status
Build Status
Build Status
Build Status
Jenkins

Windows 10

MSVC 2013 Update 5
MSVC 2015 Update 1
Build Status
Build Status
Jenkins OS X 10.10 AppleClang 6.0 Build Status

Please note that our OS X build node is currently broken (physically). However, cmake-init is supported and maintained for OS X as well.

Design Decisions

ToDo: revisit!

Console vs. Windows App (Windows only)

decisions:

  • we do not use the msvc subsystem linker flag
  • we do not use the add_executable win32 property
  • instead the set_target_properties with the WIN32_EXECUTABLE flag on target executable is used
  • we use the same subsystem for all configurations of a single target (no switching between, e.g., debug and release)

rationale: typically, only released 'feature' applications are required to decide on their subsystem, and in the case of 'gui-heavy' applications the windows subsystem is preferred (since the std output is probably piped into widgets, logfiles, or even discard).

furthermore, console output is usually more relevant for development/debugging purposes, already using console or IDE with appropriate console output handling

ToDo: Add missing content, bring into markdown form

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/

cmake-init's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.