[CMake] Creating a visual studio project with non .cpp or .h
files in it.
Josef Karthauser
joe.karthauser at geomerics.com
Thu Dec 6 08:28:13 EST 2007
> -----Original Message-----
> From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
> Sent: 06 December 2007 13:23
> To: Josef Karthauser
> Cc: Sylvain Benner; CMake ML
> Subject: Re: [CMake] Creating a visual studio project with non .cpp or
> .h files in it.
>
> Josef Karthauser wrote:
> > It would be useful if there was a standard way of doing this within
> > CMake; maybe there is in 2.6?
> >
> > Anyway, I boiled your ideas down into a single 'ADD_DOCUMENTATION()'
> > command - see attached patch to 2.4.7. It should probably be called
> > ADD_AUX_FILE() or something though, as we also use it to add
external
> > foo.cmake files to the visual project files for ease of editing
> within
> > the Visual Studio environment.
> >
>
> Actually, I would think that the right way to do this would be to
allow
> for custom targets to have sources. I don't think we need a whole new
> command for this.
That's essentially the approach that Sylvain took by making their own
alternative CUSTOM_TARGET command.
I didn't want too much addition stuff, and so just added the simplest
thing I could think of. At some point we'll move up to 2.6, and I want
our local changes to be obvious.
Joe
More information about the CMake
mailing list