Git Product home page Git Product logo

cmake-static_library-cxx's Introduction

cmake-static_library-cxx


Description.

This is a simple general purpose CMake project template for making static libraries in C/C++.

This template includes a unit testing framework, mocking framework and an exeption library all located in the external framewroks and library folder.

The external folder is also for libraries and frameworks that you would like to add to your project(s).

Main features

Uses cmake to generate build system files.

Requirements.

  • CMake v3.12.2 or newer.

Using CMake.

This project comes with a CMake build script ( that can be used on a wide range of platforms ("C" stands for cross-platform. ). If you don't have CMake installed already, you can download it for free from CMake.

To build the project, we first need to create a separate build directory:

mkdir build

Now that we've created our build directory (assuming it's created in the projct root), we can cd into it and run cmake and pass the parent directory path to it, which is where the CMakeLists.txt file is located:

cd build
cmake ../

Once cmake is done generating makefiles, we can build the project by running make inside the build directory:

make

This will build the project.

cmake-static_library-cxx's People

Contributors

squidfarts avatar

Watchers

 avatar  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.