[cmake-developers] Need some pointers on learning the code
Brad King
brad.king at kitware.com
Wed May 15 11:19:57 EDT 2013
On 05/14/2013 05:42 PM, Robert Dailey wrote:
> What target property does TARGET_FILE_DIR access when used in a
> generator expression? I'm thinking I might be able to set the output
> directory directly to the custom target for each configuration. If I
> know which target property to set, this might work. Thanks Brad.
It access the directory in which the target's main file will be
placed, as computed by CMake. The location of the target file
is determined by one of several properties (due to evolution over
time). Look at cmTarget::ComputeOutputDir for the full logic.
You may want to set the RUNTIME_OUTPUT_DIRECTORY[_<CONFIG>]
property on a target to control where its .exe or .dll gets placed.
-Brad
More information about the cmake-developers
mailing list