ADD_CUSTOM_COMMAND to copy the modules to "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/modules" should work...<br><br><br><div class="gmail_quote">On Fri, Jun 20, 2008 at 10:48 AM, Mike Arthur <<a href="mailto:mike@mikearthur.co.uk">mike@mikearthur.co.uk</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Part 3 in my never-ending quest to replace our Visual-Studio-based build<br>
system with CMake has me tearing my hair out...<br>
<br>
I've set CMAKE_RUNTIME_OUTPUT_DIRECTORY to bin so everything is build<br>
correctly in bin/Debug or bin/Release depending on the project.<br>
<br>
What I'm trying to do now is get something built in bin/Debug/modules or<br>
bin/Release/modules or, if not built there, then at least copied there later.<br>
<br>
I, however, can't seem to find any way in CMake to allow me to do this.<br>
<br>
Setting CMAKE_RUNTIME_OUTPUT_DIRECTORY to bin/modules just puts the modules in<br>
bin/modules/Release or bin/modules/Debug.<br>
<br>
Any ideas before I go mad?<br>
<br>
Thanks guys!<br>
<font color="#888888"><br>
--<br>
Cheers,<br>
Mike Arthur<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</font></blockquote></div><br>