[Paraview-developers] Detect GUI support in CMakeLists.txt of custom plugin

Schlottke-Lakemper, Michael m.schlottke-lakemper at aia.rwth-aachen.de
Mon Dec 7 09:37:21 EST 2015


Hi folks,

We have a handful of custom ParaView plugins, of which some use decorators. That is, we use qt4_wrap_cpp(…) in the CMakeLists.txt and add additional source/interface files to add_paraview_plugin(…). This fails when compiling against a ParaView version that was configured without GUI support (e.g. on some of the HPC systems we use). When I manually disable the addition of the decorators in CMakeLists.txt, compilation succeeds.

Is there a canonical way for me to programmatically detect in CMakeLists.txt whether ParaView was compiled with GUI support? That way I could rewrite my CMakeLists.txt such that it automatically disables als GUI components.

Thanks a lot in advance

Michael


--
Michael Schlottke-Lakemper

SimLab Highly Scalable Fluids & Solids Engineering
Jülich Aachen Research Alliance (JARA-HPC)
RWTH Aachen University
Wüllnerstraße 5a
52062 Aachen
Germany

Phone: +49 (241) 80 95188
Fax: +49 (241) 80 92257
Mail: m.schlottke-lakemper at aia.rwth-aachen.de<mailto:m.schlottke-lakemper at aia.rwth-aachen.de>
Web: http://www.jara.org/jara-hpc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20151207/5900763a/attachment.html>


More information about the Paraview-developers mailing list