[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 10:22:26 EST 2015


Thanks, that seems to work!

Michael

On 07 Dec 2015, at 15:51 , Mathieu Westphal <mathieu.westphal at kitware.com<mailto:mathieu.westphal at kitware.com>> wrote:

Hi

in your CMakeLists.txt

IF (PARAVIEW_BUILD_QT_GUI)

Regards

Mathieu Westphal

On Mon, Dec 7, 2015 at 3:37 PM, Schlottke-Lakemper, Michael <m.schlottke-lakemper at aia.rwth-aachen.de<mailto:m.schlottke-lakemper at aia.rwth-aachen.de>> wrote:
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<tel:%2B49%20%28241%29%2080%2095188>
Fax: +49 (241) 80 92257<tel:%2B49%20%28241%29%2080%2092257>
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


_______________________________________________
Powered by www.kitware.com<http://www.kitware.com/>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=Paraview-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview-developers



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


More information about the Paraview-developers mailing list