[CMake] file not generated with ADD_CUSTOM_COMMAND

Filipe Sousa filipe at ipb.pt
Wed Jan 4 14:56:45 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

William A. Hoffman wrote:
> 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) 

When I wrote my QT4_WRAP_UI I faced the same problem. The only solution
was telling what file ui file depends on

QT4_WARP_UI(my_SRCS widgetform.ui widgetform.h) or
QT4_WARP_UI(my_SRCS widgetform.ui widgetform.cc)

>> 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...
> 

I remember this. But I also remember that didn't work.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDvCh9bQdNYqwwwCwRAorWAJ4ylHr6Awu/F9iSUkyKrKJNlL/9iQCfRGIe
Xy0zoM4QH0tqZlZS8GtArus=
=Bj0o
-----END PGP SIGNATURE-----


More information about the CMake mailing list