I am trying to compile a standalone C++ project that links to ROOT and in particular THttpServer.
I can successfuly run the server in the ROOT terminal (new THttpServer();), but I cannot manage to build a cmake project that links to it, however I can link to other ROOT classes alright.
I can include the headers (#include <THttpServer.h>) and it compiles, but when I try to instantiate the class I get undefined reference to THttpServer::THttpServer(char const*)'`. I believe this is due to linking issues.
In my CMakeLists.txt I am doing find_package(ROOT REQUIRED) and then on the target_link_libraries I am including ${ROOT_LIBRARIES}. I think I probably need to include some additional libraries here, but I can’t find the solution online or with root-config.