Code Monkey home page Code Monkey logo

cpp-template's Introduction

C/C++ Template

C/C++ cmake, meson and premake5 template. The project is structure by default with main workspace and different subprojects.

For premake5 it is recommended to use the project as is, but it can also be collapse into just a one premake5.lua file and a src directory in the root.

The CMake version with helloworld project can be use standalone. For use with IDE like Visual Studio and Xcode.

Meson version is recommended to use as is. It does not have the same feature as cmake's subdirectory but can be use like premake5's include with subdir but with limited use. Don't use meson for building Xcode and Visual Studio build system as it is not supported as great as cmake.

CMake

Checkout fractal repository for usage with libraries.

cmake

cmake -S . -Bbuild
cmake --build build -j4

ninja

cmake -S . -Bbuild -GNinja
ninja -C build

meson

meson setup build

Use ninja the same as cmake.

Premake

Generate Makefile with premake5

premake5 gmake2

cpp-template's People

Contributors

mnerv avatar

Stargazers

 avatar

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.