On Mon, Dec 8, 2008 at 11:09 AM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span> 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;">
Someone created some cmake code to do just this exact thing earlier this year. I have been trying to hunt it down in the archives but just keep coming up empty. I have some code for an "install" rule. You could put that code in a separate cmake file, configure the file during cmake time, and then run it as a process.<br>
<br>
Here is some code that I use for an actual "install".<br>
<snip><br><br>
This assumes that the library you are trying to copy has CMake variables of the form ${basename}_LIB_DEBUG_NAME which boost does.<br>
<br>
For instance in my project that I use boost, I have the some boost variables of the type:<br>
<br>
Boost_FILESYSTEM_LIBRARY_DEBUG<br>
Boost_FILESYSTEM_LIBRARY_RELEASE<br>
<br>
Those variables will hold the correct name for each platform that you are compiling on. You could try replacing the INSTALL(.. ) command with some commands to copy the files.</blockquote></div><br>Thanks for the code snippet Michael.<br>
<br>It just occurred to me that creating a python script to do the copying
might be the best approach. However, I still need a way in CMake to
add_custom_command() to a specific configuration, such as debug or
release.<br>