Registry / build-tool / cmakerc

cmakerc

JSON →
library2023-07-24vcpkgunverified

A Resource Compiler in a Single CMake Script

vcpkg install cmakerc
INSTALL
IMPORT
SIG · CMAKERC
C
cmakerc
build-toolcppv2023-07-24
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cmrc/cmrc.hpp
#include <cmrc/cmrc.hpp>

Embed and access resources at compile time

#include <cmrc/cmrc.hpp> #include <iostream> CMRC_DECLARE(resources); int main() { auto fs = cmrc::resources::get_filesystem(); auto data = fs.open("hello.txt"); std::cout << std::string(data.begin(), data.end()) << std::endl; return 0; }
Debug
Known issues
gotchaRequires CMake 3.15+ and files to be listed at configure time
fix
Ensure your CMakeLists.txt uses cmrc_add_resource_library with all resource files
affects: *
Upgrade
Version history
2023-07-24latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources

No resource links recorded.

cmakerc — pip install cmakerc · libregistry