Re: [CMake] Qt4
Alexander Neundorf
a.neundorf-work at gmx.net
Wed Jul 20 09:48:17 EDT 2005
> Von: Filipe Sousa <filipe at ipb.pt>
>
...
> QT_ADD_EXECUTABLE can handle resources, user interfaces (not working
yet)
> and
> moc.
> My problem is with .ui files. I want cmake handle .ui files the way
qmake
> does. QMake will only generate the ui_MyDialog.h if one of the source
> file includes that file.
>
> I wrote this macro to make MainWindow.cc depending on ui_MyDialog.h
> QT_UI_DEPENDS(MyDialog.ui MainWindow.cc). I think QT_ADD_EXECUTABLE
> should handle everything.
You can have a look at websvn.kde.org -> trunk/KDE/kdevelop/cmake/
There the files KDEMacros.cmake and KDEMagic.cmake contain among others a
macro KDE_MAGIC_FILE_HANDLING() which does most of this.
Bye
Alex
--
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
More information about the CMake
mailing list