On Monday, May 13, 2013 03:03:27 PM Brad King wrote:
> 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
Yeah. I was thinking something like Xcode where there are configurations, but
I could put the libraries in a 'lib' directory and the executables in a 'bin'
directory, where lib and bin have the same parent.
In other words, I want:
Debug/lib/
Debug/bin/
Debug/plugins/
instead of:
lib/Debug/
bin/Debug/
plugins/Debug/
If I have plugins and resources, I'd want the first, even on Windows, where the
bin and lib directory could be merged.
Clint
--
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