If "${PROJECT_BINARY_DIR}/bin/plugins" is used in an add_custom_command context, you can use "${PROJECT_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/plugins" instead to get what you want. If it's something else besides add_custom_command, then elaborate with some more details...<br>
<br><div>${CMAKE_CFG_INTDIR} evaluates to something like "$(OutDir)" for VS, "$(CONFIGURATION)" for Xcode and "." for makefile generators.</div><div><br></div><div><br></div><div>HTH,</div><div>
David</div><div><br></div><div><br><div class="gmail_quote">On Thu, Mar 18, 2010 at 4:39 PM, Mike Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I am working on some CMake Code where I would like some libraries to<br>
be placed inside a "plugins" folder in the following path:<br>
<br>
${PROJECT_BINARY_DIR}/bin/plugins.<br>
<br>
Works fine with Makefiles. Problem is on Visual Studio. I get my<br>
executables in ${PROJECT_BINARY_DIR}/bin/Debug/myexe.exe<br>
but the plugins get put in<br>
${PROJECT_BINARY_DIR}/bin/plugins/myplugin.dll<br>
<br>
Working through this in my head I know this is a "Compile" time<br>
problem and probably can't be solved at "CMake" time because cmake has<br>
no idea what configuration I am going to build my app in. Would a post<br>
build step be required for this or something else?<br>
_________________________________________________________<br>
Mike Jackson <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer Dayton, Ohio<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>