On 05/13/2013 02:55 PM, Clinton Stimpson wrote:
> To avoid the copy step, would it be useful to make generator expressions work
> in target properties?
The copy in my example in the issue is for an external dependency.
> set_target_properties(mylib PROPERTIES
> LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIGURATION>/lib")
> set_target_properties(myexe PROPERTIES
> RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIGURATION>/bin")
For in-project targets one can simply set the output directory to
be the same for .dll and .exe files.
-Brad
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers