I'm having some trouble adding ControlPort hooks to an OOT module. Is there a guide on this I am missing? I followed the ControlPort manual page including the #ifdef statements, however GR_CTRLPORT is not set and the controlport code never gets built.
If I force the code to be built, the build fails as none of the controlport stuff is included. There appears to be some CMake or include statements I am missing. I tried to modify the top-level/lib/swig cmake files to emulate what in-tree modules have done but to no avail.
ControlPort and thrift are definitely built into the GR installation and works just fine. Any pointers are appreciated. GR is release 3.9.2