<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Utkarsh, Happy new year!<br>
    <br>
    I have a couple of questions about the new way.<br>
    <br>
    Shouldn't this be automatically added by ADD_PARAVIEW_PLUGIN macro
    like the rest of the PV related link dependencies?<br>
    Should you really need to link Qt to all plugins?<br>
    <br>
    My plugin is a number of simple server side only classes, for ex a
    reader. It has no need of Qt. I'd rather not have Qt as a dependency
    of my project.<br>
    <br>
    Burlen<br>
    <br>
    <div class="moz-cite-prefix">On 12/22/2016 12:17 PM, Utkarsh Ayachit
      wrote:<br>
    </div>
    <blockquote
cite="mid:CADHSJjAFEC+goaMOsjMU4TQ_FgJ_a-XAYG3fU8RQkCPaLtXndA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Burlen,
        <div><br>
        </div>
        <div>See Qt dependencies changes documented here: <a
            moz-do-not-send="true"
href="http://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-doc/MajorAPIChanges.html"><a class="moz-txt-link-freetext" href="http://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-doc/MajorAPIChanges.html">http://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-doc/MajorAPIChanges.html</a></a></div>
        <div>
          <pre class="gmail-fragment" style="border:1px solid rgb(196,207,229);background-color:rgb(251,252,253);padding:4px 6px;margin:4px 8px 4px 2px;overflow:auto;word-wrap:break-word;line-height:18.375px;font-family:monospace,fixed;font-size:14.7px;color:rgb(0,0,0)">include(ParaViewQt) # generally not needed, since auto-included
pv_find_package_qt(qt_targets
  QT4_COMPONENTS QtGui
  QT5_COMPONENTS Widgets)

pv_qt_wrap_cpp(moc_files ${headers})
pv_qt_wrap_ui(ui_files ${uis})

...
target_link_libraries(${target} LINK_PRIVATE ${qt_targets})</pre>
        </div>
        <div><br>
        </div>
        <div>Utkarsh</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Dec 21, 2016 at 1:25 PM, Burlen
          Loring <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:burlen.loring@gmail.com" target="_blank">burlen.loring@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> After upgrading to
              5.2 my plugin is not compiling. When I configure the
              plugin I see a few pages of the following:<br>
              <blockquote>CMake Warning (dev) at io/CMakeLists.txt:54
                (add_library):<br>
                  Policy CMP0028 is not set: Double colon in target name
                means ALIAS or<br>
                  IMPORTED target.  Run "cmake --help-policy CMP0028"
                for policy details.<br>
                  Use the cmake_policy command to set the policy and
                suppress this warning.<br>
                <br>
                  Target "teca_io" links to target "Qt4::QtCore" but the
                target was not<br>
                  found.  Perhaps a find_package() call is missing for
                an IMPORTED target, or<br>
                  an ALIAS target is missing?<br>
                This warning is for project developers.  Use -Wno-dev to
                suppress it.<br>
              </blockquote>
              then linker errors<br>
              <blockquote>[ 32%] Linking CXX shared library
                ../lib/libteca_io.so<br>
                /bin/ld: cannot find -lQt4::QtCore<br>
                /bin/ld: cannot find -lQt4::QtGui<br>
                collect2: error: ld returned 1 exit status<br>
                io/CMakeFiles/teca_io.dir/<wbr>build.make:402: recipe
                for target 'lib/libteca_io.so' failed<br>
                make[2]: *** [lib/libteca_io.so] Error 1<br>
                CMakeFiles/Makefile2:196: recipe for target
                'io/CMakeFiles/teca_io.dir/<wbr>all' failed<br>
                make[1]: *** [io/CMakeFiles/teca_io.dir/<wbr>all] Error
                2<br>
                Makefile:127: recipe for target 'all' failed<br>
                make: *** [all] Error 2<br>
              </blockquote>
              It's not a library so I set  the policy to new,  and the
              cmake configure errors out. Any idea what's missing?<br>
              <br>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            Powered by <a moz-do-not-send="true"
              href="http://www.kitware.com" rel="noreferrer"
              target="_blank">www.kitware.com</a><br>
            <br>
            Visit other Kitware open-source projects at <a
              moz-do-not-send="true"
              href="http://www.kitware.com/opensource/opensource.html"
              rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://www.kitware.com/">http://www.kitware.com/</a><wbr>opensource/opensource.html</a><br>
            <br>
            Please keep messages on-topic and check the ParaView Wiki
            at: <a moz-do-not-send="true"
              href="http://paraview.org/Wiki/ParaView" rel="noreferrer"
              target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
            <br>
            Search the list archives at: <a moz-do-not-send="true"
              href="http://markmail.org/search/?q=ParaView"
              rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
            <br>
            Follow this link to subscribe/unsubscribe:<br>
            <a moz-do-not-send="true"
              href="http://public.kitware.com/mailman/listinfo/paraview"
              rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>

Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>