[CMake] RE: CMake 2.4.1/VC71 Why the wierd <project>.dir subdirs?

Alexander Neundorf a.neundorf-work at gmx.net
Thu May 10 15:14:06 EDT 2007


On Thursday 10 May 2007 14:50, Trevor Kellaway wrote:
> Bill,
>
> > >> I'd personally like is some standard ways to get at *.obj locations
> >
> > get_target_properties(foo PROPERTIES OBJECT_FILES objs)
> >
> > I did make an attempt at this, and it worked well for
> > makefiles, but I had trouble with Xcode and visual studio I think...
>
> Does that mean this is supported in the dev tree?
>
> I tried this with "cmake version 2.5-20070505" but it didn't work, I
> also tried
>
> 	GET_TARGET_PROPERTY (myobj myfile.c OBJECT_FILES)

GET_TARGET_PROPERTY(objectFiles <targetName> OBJECT_FILES)
should work

Alex


More information about the CMake mailing list