[Cmake] Using Cross GCC with VC++ ide
Bill Hoffman
bill . hoffman at kitware . com
Wed, 11 Jun 2003 13:29:03 -0400
Currently, we support gnu makefiles under cygwin only.
If you install the cygwin version of cmake it will generate
gnu makefiles. I think Francis Larrivée was looking into adding
support for gmake. It should not be that hard to add.
I do not think there is a way from a cmake list file to add
new depends on to a target. However, I think you could
do it with a cmake plugin. You will want to look at
this function:
void (*SourceFileAddDepend) (void *sf, const char *depend);
I think that if you add the depends to the source file, cmake will
put them in that USERDEP_HACK section.
In the source for cmake, there is an example loadeded command:
CMake/Tests/LoadCommand/
-Bill
At 12:37 PM 6/11/2003, Nitin Gupta wrote:
>Hi,
> I just downloaded CMake and am trying out its
> windows and Linux builds.
>
> The projects made by CMake work beautifully
> with VC++ (I'm using 6.0). Thanks for the immensely
> useful tool with support of variety of make
> formats.
>
> I was wondering why doesn't CMake support
> gmake Makefile generation on Windows as it does
> in Linux? I hope I'm not missing out something obvious !
>
> I was considering switching our build environment
> to CMake with VC++ IDE as GUI. We use a port of gcc cross
> compiler and currently we are deploying commercial VC++
> plugin to do the job. This plugin does not do a good job
> when it comes to automatically updation of the dependencies.
> Can this be done with current implementation of CMake?
> I tried my hand by adding header dependencies in
> USERDEP__HACK for a source file in the .dsp file
> generated by CMake for VC++ projects and it worked.
> So my question is can we tweak some module description
> (or add new say GCC_VC module) so that CMake emits
> this dependency info in .dsp and updates it on subsequent builds?
> Thoughts?
>
> Thanks for your time.
>
>
>Regards,
>Nitin
>
>_______________________________________________
>Cmake mailing list
>Cmake at public . kitware . com
>http://public . kitware . com/mailman/listinfo/cmake