[Cmake] Getting target's full path
Andy Cedilnik
andy.cedilnik at kitware.com
Wed, 14 Apr 2004 13:48:41 -0400
Hi Iker,
I think the only one that is strange is for dlls.
DLLs I think LIBRARY_OUTPUT_PATH even though they are really runtime
thing. Your safest bet is to set them both to the same thing.
Andy
On Wed, 2004-04-14 at 13:36, Iker Arizmendi wrote:
> 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
> >