[Cmake] Getting target's full path
Iker Arizmendi
iker at research.att.com
Wed, 14 Apr 2004 13:36:08 -0400
Thanks Andy. Great to hear its in the works :)
Regards,
Iker
P.S.
When is LIBRARY_OUTPUT_PATH useable?
Eg,
ADD_LIBRARY(MyLib STATIC SRCS)
# is LIBRARY_OUTPUT_PATH defined as one expect
# at this point?
Andy Cedilnik wrote:
> 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).
>>
>
>
> _______________________________________________
> Cmake mailing list
> Cmake at www.cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>