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.
To associate your repository with the clang topic, visit your repo's landing page and select "manage topics."