Hello there!
I just wanted to share with you cmake4rhino: it’s my take of a CMake project template for Rhino C++ plug-in development.
It helps you get started quickly with a clean, reusable setup via a cookiecutter template (for now). You can give the plugin your name and it will be updated everywhere across the source code:
❯ cookiecutter gh:9and3/cmake4rhino --checkout cookietemplate
and build a Rhino plug-in C++ just as any CMake C++ project:
❯ cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DRHINO_DEBUG_PLUGIN=ON
❯ cmake --build build --config Release
And that’s it, you will have your beautiful .rhp
file in your build/
folder!
If you see a way to improve this, find out any bug, or want to contribute, let me know ! For now I will be working on setting up a nice build action to test the compilation for CI/CD.
This is the github repo of cmake4rhino.
Cheers!