Check Eve availability with CMake

I’d need to check wether Eve is available or not when configuring the build of my Root application. However I cannot identify which CMake variable should I test; I’d say that I should check the value of ROOT_Graf3d_LIBRARY but I’m not sure, so I’d appreciate any help with this. Thanks.

Eve depends only on opengl being enabled in ROOT, so you can use ${ROOT_opengl_FOUND} if I’m not mistaken. Alternatively, you can use if (TARGET ROOT::Eve) if you are using CMake.

Thanks for your suggestion @amadio. I used the second version (check target) and it works.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.