On Wed, May 14, 2008 at 4:22 AM, Matthias Riechmann <<a href="mailto:riechmann@ira.uka.de">riechmann@ira.uka.de</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi folks,<br>
<br>
is there any well defined way to include external DLL files (Qt, VTK, ITK, ...) into the installer? I guess it will work somehow using the INSTALL(FILES ...) command but currently I have no idea how to find those files automatically or how to compose a command like "I want all the files F which are located in directory DS to be copied to directory DT". Any idea?</blockquote>
<div><br>Use file(GLOB ...)?<br><br>file(GLOB MY_DLL_FILES ${MY_DIRECTORY}/*.dll)<br>install(FILES ${MY_DLL_FILES} DESTINATION bin)<br></div></div><br>Either that or you can list them manually if there are only a few of
them after you call FIND_PACKAGE which is often what we do. Append
them all to a list and then call install() at the tail end of your
CMakeLists.<br><br>-- <br>Philip Lowman