Hello,<br>to add an extra library you have to add this kind of lines in the CMAKE file :<br>in order to find the library :<br>FIND_LIBRARY(MY_LIBRARY mylib.so<br>  /usr/local/lib<br>  /usr/lib<br>)<br><br>in order to link with the librarie<br>
TARGET_LINK_LIBRARIES(myReader<br>  ${MY_LIBRARY}<br>  )<br><br>Best regards,<br>Didier<br><br><div class="gmail_quote">2010/11/4 Felipe Bordeu <span dir="ltr">&lt;<a href="mailto:felipe.bordeu@ec-nantes.fr">felipe.bordeu@ec-nantes.fr</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<br>
I have a custom reader, and I have to do a lot of computations to generate the data.<br>
I want to use blas to speed up the computations.<br>
<br>
How can I link my plugging to the blas library???<br>
the cmake macro  ADD_PARAVIEW_PLUGIN(..   does not have any option for extra libraries.<br>
and when I try  to use it I get :<br>
/.../bin/paraview: symbol lookup error: /../libPGDReader.so: undefined symbol: cblas_saxpy<br>
<br>
If I use the pluging in a vtk project I explicitly link the library and everything work fine.<br>
<br>
<br>
I have another question:<br>
Can my reader know if it used in paraview or in a c++ project (only vtk)?? (I want to automatised some things if is used in paraview)?<br>
<br>
thanks<br>
<br>
-- <br>
<br>
Felipe Bordeu Weldt<br>
Ingénieur de Recherche<br>
-------------------------------------<br>
Tél. : 33 (0)2 40 37 16 57<br>
Fax. : 33 (0)2 40 74 74 06<br>
<a href="mailto:Felipe.Bordeu@ec-nantes.fr" target="_blank">Felipe.Bordeu@ec-nantes.fr</a><br>
Intitut GeM - UMR CNRS 6183<br>
École Centrale de Nantes<br>
1 Rue de La Noë, 44321 Nantes, FRANCE<br>
-------------------------------------<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>