[cmake-developers] Need some pointers on learning the code
Brad King
brad.king at kitware.com
Mon May 13 15:03:27 EDT 2013
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
More information about the cmake-developers
mailing list