Useful CMake Examples
-
Updated
Feb 28, 2024 - CMake
Useful CMake Examples
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.
C++ project template with unit-tests, documentation, ci-testing and workflows.
CMake precompiled header support via custom PCH compiler extension
C++ compile-time programming (serialization, reflection, code modification, enum to string, better enum, enum to json, extend or parse language, etc.)
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
Here I collect some action workflows which can be useful for C/C++ developers
A simplest sample code to use/build with ClangTool. This example treats LLVM as external prebuilt libraries on Windows/Linux.
C++ pimpl code generator. Fast pimpl without overhead! No dynamic memory allocation! Cache-friendly! Auto-detects storage size! Generates methods based on implementation!
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."