[Cmake] Using Cross GCC with VC++ ide
Bill Hoffman
bill . hoffman at kitware . com
Thu, 12 Jun 2003 11:07:24 -0400
There should be no order problem.
At the top of the project, you compile
and load the new command. Then you can
use the command.
-Bill
At 10:38 AM 6/12/2003, Nitin Gupta wrote:
>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
>>
>
>_______________________________________________
>Cmake mailing list
>Cmake at public . kitware . com
>http://public . kitware . com/mailman/listinfo/cmake