ChristianHinkle /
MeddySDK
The best practices of modern CMake consolidated into a collection of C++ projects.
64/100 healthLoading repository data…
mechazoidal / repository
A collection of CMake examples for demonstration purposes.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This is a collection of subprojects showing various advanced facets of CMake. It started out as a personal tool-evaluation repository for graphic and networking libraries, and shows some of the ways I use CMake.
The "source" files being compiled in these examples are taken directly from the project being shown. Only CMake is on display here.
If you've never used CMake before, please see A Brief Beginner's Guide to CMake, which served as inspiration for releasing this repository.
Each project has a README detailing sub-requirements, showing the project layout, and walking through the CMakeLists.txt files.
Generally to build each, the following usage is encouraged:
$ mkdir build
$ cd build
$ cmake ..
$ <build system invocation, usually 'make'>
This is what's known as an "out-of-source" build, and it is strongly encouraged with CMake. There are a few major advantages in CMake:
build/* directive in your SCM ignore file, versus manually cleaning out after a build.cmake/make calls will NOT remove variables you might have set in previous versions of your CMakeLists.txt!Don't forget there are many ways of running CMake beyond the standard CLI invocation! See the official Running CMake page for more.
There should be no issues with running these examples on Windows, but no testing has been performed due to lack of access to a Windows system.
The base CMakeLists.txt and README.md files in each directory were created for the cmake_cookbook project, and are covered under the terms of the MIT License detailed in the LICENSE file.
The CMakeLists.txt files in nanovg/libs/nanovg/ and imgui/libs/imgui were also created for the cmake_cookbook, and are also covered under the MIT License.
Code samples in the src/ directories are taken from the projects being shown and should be considered to be under the license for that specific project.
In the interest of having a working example for nanovg, the nanovg/media directory contains a copy of the "NotoSansUI-Regular.ttf" file from Google's Noto fonts collection , licensed under SIL OFL 1.1.
Selected from shared topics, language and repository description—not editorial ratings.
ChristianHinkle /
The best practices of modern CMake consolidated into a collection of C++ projects.
64/100 healthdjeada /
A curated collection of modern C++ project templates and best practices using CMake.
53/100 health