Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chronoxor/cpptemplate
Cross-platform template C++ project configured to build for Linux (gcc/clang), MacOS, Windows (Cygwin, MinGW, MSYS2, Visual Studio) with GitHub Action continuous integration
https://github.com/chronoxor/cpptemplate
cmake-examples template-project
Last synced: 2 months ago
JSON representation
Cross-platform template C++ project configured to build for Linux (gcc/clang), MacOS, Windows (Cygwin, MinGW, MSYS2, Visual Studio) with GitHub Action continuous integration
- Host: GitHub
- URL: https://github.com/chronoxor/cpptemplate
- Owner: chronoxor
- License: mit
- Created: 2016-09-20T01:07:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-09T04:02:01.000Z (11 months ago)
- Last Synced: 2024-03-27T20:01:54.967Z (10 months ago)
- Topics: cmake-examples, template-project
- Language: C++
- Homepage:
- Size: 1.05 MB
- Stars: 35
- Watchers: 5
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CppTemplate
[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
[![Release](https://img.shields.io/github/release/chronoxor/CppTemplate.svg?sort=semver)](https://github.com/chronoxor/CppTemplate/releases)
[![Linux (clang)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-linux-clang.yml/badge.svg)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-linux-clang.yml)
[![Linux (gcc)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-linux-gcc.yml/badge.svg)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-linux-gcc.yml)
[![MacOS](https://github.com/chronoxor/CppTemplate/actions/workflows/build-macos.yml/badge.svg)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-macos.yml)
[![Windows (Cygwin)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-windows-cygwin.yml/badge.svg)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-windows-cygwin.yml)
[![Windows (MSYS2)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-windows-msys2.yml/badge.svg)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-windows-msys2.yml)
[![Windows (MinGW)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-windows-mingw.yml/badge.svg)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-windows-mingw.yml)
[![Windows (Visual Studio)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-windows-vs.yml/badge.svg)](https://github.com/chronoxor/CppTemplate/actions/workflows/build-windows-vs.yml)C++ Template Library contains initial templates for a new C++ library project.
[CppTemplate API reference](https://chronoxor.github.io/CppTemplate/index.html)
# Contents
* [Features](#features)
* [Requirements](#requirements)
* [How to build?](#how-to-build)# Features
* Cross platform (Linux, MacOS, Windows)
* Benchmarks
* Examples
* Tests
* [Doxygen](http://www.doxygen.org) API documentation
* Continuous integration ([Travis CI](https://travis-ci.com), [AppVeyor](https://www.appveyor.com))# Requirements
* Linux
* MacOS
* Windows
* [cmake](https://www.cmake.org)
* [gcc](https://gcc.gnu.org)
* [git](https://git-scm.com)
* [gil](https://github.com/chronoxor/gil.git)
* [python3](https://www.python.org)Optional:
* [clang](https://clang.llvm.org)
* [CLion](https://www.jetbrains.com/clion)
* [Cygwin](https://cygwin.com)
* [MSYS2](https://www.msys2.org)
* [MinGW](https://mingw-w64.org/doku.php)
* [Visual Studio](https://www.visualstudio.com)# How to build?
### Install [gil (git links) tool](https://github.com/chronoxor/gil)
```shell
pip3 install gil
```### Setup repository
```shell
git clone https://github.com/chronoxor/CppTemplate.git
cd CppTemplate
gil update
```### Linux
```shell
cd build
./unix.sh
```### MacOS
```shell
cd build
./unix.sh
```### Windows (Cygwin)
```shell
cd build
unix.bat
```### Windows (MSYS2)
```shell
cd build
unix.bat
```### Windows (MinGW)
```shell
cd build
mingw.bat
```### Windows (Visual Studio)
```shell
cd build
vs.bat
```