[Paraview-developers] Detect GUI support in CMakeLists.txt of custom plugin
Mathieu Westphal
mathieu.westphal at kitware.com
Mon Dec 7 09:51:38 EST 2015
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> 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
> Fax: +49 (241) 80 92257
> Mail: m.schlottke-lakemper at aia.rwth-aachen.de
> Web: http://www.jara.org/jara-hpc
>
>
> _______________________________________________
> Powered by 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/9cf2f1af/attachment.html>
More information about the Paraview-developers
mailing list