Useful CMake Examples
-
Updated
Feb 28, 2024 - CMake
Useful CMake Examples
C++ project template with unit-tests, documentation, ci-testing and workflows.
Easy-to-add enhancements for any C/C++ CMake project. Including AFL fuzzing, code-coverage, Thread/Address/Leak/Address/Undefined sanitizer instrumentation, compilation of GLSL shaders and more.
CMake precompiled header support via custom PCH compiler extension
Build CastXML and its dependencies (LLVM/Clang)
Simplest way to compile & build STM32 CubeMX project using cmake & arm-none-eabi-gcc or Clang. This repo is used in my package for Emacs: https://github.com/SL-RU/stm32-emacs
Build LLVM Toolchain targeting a custom sysroot - Clang, LLD, Binutils (gold), compiler-rt, libc++, libcxxabi, libunwind
C++ compile-time programming (serialization, reflection, code modification, enum to string, better enum, enum to json, extend or parse language, etc.)
C++ template engine + code generator = javascript-like template literals
A simplest sample code to use/build with ClangTool. This example treats LLVM as external prebuilt libraries on Windows/Linux.
Clang Toolset integration for CMake. Run clang-format and clang-tidy directly from your project as a target
Add a description, image, and links to the clang topic page so that developers can more easily learn about it.
To associate your repository with the clang topic, visit your repo's landing page and select "manage topics."