[Cmake] Using Cross GCC with VC++ ide
Nitin Gupta
ngupta at GlobespanVirata . com
Thu, 12 Jun 2003 20:08:44 +0530
Hi Bill,
Thanks for your response.
I think you are suggesting of adding a new command
(say ADD_CUSTOM_DEPEND_GCC(src.c)). In the command
invoke GCC with appropriate preprocessor switch
for src.c for finding header dependencies and then
invoke SourceFileAddDepend list of dependencies.
Before I try this please let me know if there
any order in which this new command may be used in
CMakeList.txt file relative to other commands. I'm
asking this because these is dependency on
SourceFileAddDepend.
Thanks and Regards,
Nitin
> 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
>