[Cmake] Getting target's full path
Andy Cedilnik
andy.cedilnik at kitware.com
Wed, 14 Apr 2004 13:21:55 -0400
Hi Iker,
Currently you have to play with EXECUTABLE_OUTPUT_PATH and
LIBRARY_OUTPUT_PATH, but there is a feature request for this in the bug
tracker. The use will be something like:
ADD_LIBRARY(MyLib STATIC SRCS)
GET_TARGET_PROPERTIES(MyLibPath MyLib OUTPUT_PATH)
Andy
On Wed, 2004-04-14 at 12:57, Iker Arizmendi wrote:
> Is there any way to obtain the full path of
> a target?
>
> Eg,
>
> ADD_LIBRARY(MyLib STATIC SRCS)
> SET(MyLibPath GET_TARGET_PATH(MyLib))
>
> or something similar? I'm trying to get the
> path in order to add other static libraries to
> MyLib (so my clients don't have to include
> them explicitly).
>