CMake is a cross-platform open-source meta-build system which can build, test and package software. It can be used to support multiple native build environments including make, Apple's xcode and Microsoft Visual Studio. The cmake-examples reposiory includes some example CMake configurations which I have picked up when exploring it's usage for various projects. The examples are laid out in a tutorial like format. The first examples are very basic and slowly increase in complexity drawing on previous examples to show more complex use cases. These examples have been tested on Ubuntu 14.04 but should work under any Linux system that supports CMake. The basic requirements for most examples are CMake, and a c++ compiler [defaults to gcc). There are many CMake tutorials and examples online.

Features

  • This branch works with the CMake version 3.5 onwards
  • These examples have been tested on Ubuntu 16.04 but should work under any Linux system that supports CMake v3.5+
  • Docker containers with all requirements and various versions of CMake are generated to help make testing the examples easier
  • There are many CMake tutorials and examples online
  • Includes some info about using CppCheck with CMake
  • The examples are laid out in a tutorial like format

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow CMake Examples

CMake Examples Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of CMake Examples!

Additional Project Details

Operating Systems

Linux

Programming Language

C++

Related Categories

C++ Library Management Software

Registered

2021-09-09