cmrc
« Back to VersTracker
Description:
CMake Resource Compiler
Type: Formula  |  Latest Version: 2.0.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cmake c-plus-plus resource-management build-tools embedded-assets
Install: brew install cmrc
About:
CMake Resource Compiler (cmrc) is a CMake-based tool that allows embedding binary resources directly into C++ executables. It compiles resource files into C++ source code, enabling static linking of assets like shaders, images, and configuration files. This eliminates runtime file I/O dependencies and simplifies distribution.
Key Features:
  • Compiles arbitrary files into C++ source code
  • Seamless integration with CMake build systems
  • Provides a virtual filesystem API for accessing resources
  • Zero runtime dependencies for embedded resources
Use Cases:
  • Embedding shader files in graphics applications
  • Bundling configuration files with CLI tools
  • Including web assets in desktop applications
Alternatives:
  • xxd – Generates hex dumps but lacks CMake integration and structured resource management
  • bin2cpp – Similar functionality but requires separate toolchain integration vs cmrc's native CMake approach
License: MIT
Bottles available for: all
Version History
Detected Version Rev Change Commit