How ximikboda/cmakemretemplate works
This repository is a CMake template for building a small MRE application, with phone and MoDis simulator packaging options. The example workflow starts at the MRE vm_main entry point, registers input and system-event handlers, loads a resource and draws a greeting; the template also documents executable-linking and VXP/VSM packaging functions. The graph includes documented build-template capabilities as product behavior. Source excerpts show the demo runtime, but not the subdirectory build definitions, resource target, or simulator launcher, so those connections are limited to README or root-CMake evidence.
Main entry points: CMakeLists.txt Project configuration · AddMreExec.cmake MRE executable · main.cpp Demo app · resources Resource pack
Components 15
Demo runtime
- Demo app
main/main.cpp - GCC startup
common/gccmain.c - MRE SDK
Build and package
- Project configuration
CMakeLists.txt - MRE executable
cmake/AddMreExec.cmake - VXP target
cmake/AddExecVxp.cmake - VXP packer
cmake/AddPackVxp.cmake - VSM target
cmake/AddExecVsm.cmake - VSM packer
cmake/AddPackVsm.cmake
Resources and API
- Resource pack
resources - MRE API library
mreapi/null.cpp
Run targets
- MRE phone
- MoDis simulator
- MoDis runner
run/run_in_MoDis
Other components
- App developer
Connections 20
- App developer → Project configuration: configures
README.md - Project configuration → Resource pack: adds subdirectory
CMakeLists.txt - Project configuration → MRE API library: adds subdirectory
CMakeLists.txt - Project configuration → MoDis runner: adds subdirectory
CMakeLists.txt - Project configuration → Demo app: adds subdirectory
CMakeLists.txt - VXP target → MRE executable: calls
README.md - VXP target → VXP packer: calls
README.md - VSM target → MRE executable: calls
README.md - VSM target → VSM packer: calls
README.md - VXP packer → MRE executable: packs executable
README.md - VXP packer → Resource pack: uses resources
README.md - VSM packer → MRE executable: packs executable
README.md - VSM packer → Resource pack: uses resources
README.md - MRE executable → GCC startup: links startup
README.md - GCC startup → Demo app: calls vm_main
common/gccmain.c - Demo app → MRE SDK: calls graphics APIs
main/main.cpp - Demo app → Resource pack: loads resource
- VXP target → MRE phone: packages for
README.md - VSM target → MoDis simulator: packages for
README.md - MoDis runner → MoDis simulator: copies and runs
README.md