Well, it would be good to improve all the applicable find modules to provide LIBXML2_RUNTIME_LIBRARY and LIBXML2_RUNTIME_LIBRARY_DIRS, as mentioned in the readme.txt in the modules folder. This is what I am doing with my own modules - you might consider copying the FindLibXML2.cmake file to your project's module directory and making improvements to support this.<br>
<br>Ryan<br><br><div class="gmail_quote">On Wed, Feb 10, 2010 at 4:41 PM, Gabriel Petrovay <span dir="ltr"><<a href="mailto:gabriel.petrovay@28msec.com">gabriel.petrovay@28msec.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>We are using CMake 2.6. For Windows we need the DLL's of the required libraries for two reasons given below.<br><br>Take
for example LibXml.dll which is required by our project in order to run
on Windows. One can build and link our project successfully because the
FindLibXml2.cmake provides:<br>
# LIBXML2_INCLUDE_DIR - The LibXml2 include directory<br># LIBXML2_LIBRARIES - The libraries needed to use LibXml2<br><br>But we also need a reference to the LibXml2.dll file for the following 2 reasons.<br><br>1.
When you "make" the "install" target (e.g. "nmake install"), the dll of
the required library has to go into the "bin" directory, as well where
our executable.<br>
2. We also need to set the PATH environment variable in order to
execute our own executable (during the build, a bootstrap executable).
So we need it in a scenario like:<br>
SET(ENV{PATH} ${LIBXML2_DLL})<br><br>So, do you know a way to:<br>- install the DLLs belonging to a required library;<br>- reference the DLLs belonging to a required library during the build.<br><br>I would expect that the FindLibXml2.cmake module would also provide a LIBXML2_DLL variable on Windows platforms.<br>
<br>Thanks!<br><br>Gabriel<br clear="all"><font color="#888888"><br>-- <br>MSc Gabriel Petrovay<br>Mobile: +41(0)787978034<br><a href="http://www.28msec.com" target="_blank">www.28msec.com</a><br>
</font><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 CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><br>-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>
Iowa State University<br><br><a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br><a href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a><br>Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a><br>