ROS2 - RHINO plugin -how to compile? is Cmake an option?

I ma trying to write a rhino plugin that uses ROS 2 code.
As ROS 2 code is compiled by CMake i haven’t found an easy way to integrate it with Rhino C++ SDK.
Is their a way to compile a Rhino plugin with cmake? any links to such a project??
Any other ideas on what else can be done?

Just compile the ROS 2 code as a library separately, statically or dynamically, whichever you like best. Then link to it from your Rhino plug-in. Just don’t try to compile it all from the plug-in project.