[CMake] file not generated with ADD_CUSTOM_COMMAND

William A. Hoffman billlist at nycap.rr.com
Wed Jan 4 13:47:32 EST 2006


At 01:29 PM 1/4/2006, Alexander Neundorf wrote:
>>
>This might be problematic. 
>The current FindQt4.cmake contains a macro QT4_WRAP_UI: 
> 
>SET(my_SRCS main.cpp widget.cpp foo.cpp) 
>QT4_WRAP_UI(my_SRCS widgetform.ui) 
> 
>Now QT4_WRAP_UI generates a ui_widgetform.h from the ui-file and nothing 
>else, i.e. no source file. This header contains a class (struct) with all 
>function inlined. It is not known by which file it will be included, so 
>that calling OBJECT_DEPENDS is not really possible. 
> 
>Wouldn't it be possible to detect during the dependency scanning that, 
>although an included file doesn't exist, it can be generated by a 
>ADD_CUSTOM_COMMAND and so its dependency can be added ? 
>Or make this possible by adding ui_formwidget.h to the list of sources, 
>and cmDependC.cxx would add non-existent files if they are in the list of 
>the sources ? 
> 


Actually, I think Brad fixed this:

revision 1.71
date: 2005-08-17 15:43:58 +0000;  author: king;  state: Exp;  lines: +64 -7
ENH: Adding support for automatically adding the OBJECT_DEPENDS for generated header files.

It may only be in CVS cmake.  Are you using CVS?  It may be broken...

-Bill



More information about the CMake mailing list