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"><br>-- <br>MSc Gabriel Petrovay<br>Mobile: +41(0)787978034<br><a href="http://www.28msec.com">www.28msec.com</a><br>