<div dir="ltr">On Wed, Sep 24, 2008 at 3:17 AM, Mehdi Rabah <span dir="ltr"><<a href="mailto:mehdi.rabah@gmail.com">mehdi.rabah@gmail.com</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;">
<div dir="ltr">Hi,<div><br></div><div>I'm trying to copy files in the executable *output* directory but I don't know how to do it in the way that works in Eclipse CDT and Visual Studio. I set my variable executable_output_path (which was changed to cmake_runtime_output_path?) to $cmake_binary_dir/bin, and it works in Eclipse, but not in Visual studio because the runtime output path in visual is more like bin/Debug or bin/Release.</div>
<div><br></div><div><br></div><div>How to do it ? (copy ressources files in the executable output path in a way that works for all ide?)</div></div></blockquote><div><br>When I need to copy extra stuff into the runtime output path under Windows for VS I iterate over ${CMAKE_CONFIGURATION_TYPES} when copying into ${CMAKE_RUNTIME_OUTPUT_PATH}. If you need Eclipse support you can just copy into ${CMAKE_RUNTIME_OUTPUT_PATH}. To vary between the two you can probably use IF(MSVC).<br>
<br>As for how to do the copying easily, you might find this macro helpful:<br><a href="http://www.cmake.org/Wiki/CMakeCopyIfDifferent">http://www.cmake.org/Wiki/CMakeCopyIfDifferent</a><br><br></div></div><br>-- <br>Philip Lowman<br>
</div>