[cmake-developers] Need some pointers on learning the code
Clinton Stimpson
clinton at elemtech.com
Mon May 13 15:09:01 EDT 2013
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
More information about the cmake-developers
mailing list