kdesupport/qt-dbus/examples

Alexander Neundorf neundorf at kde.org
Mon Jun 5 22:38:55 CEST 2006


Hi,

On Thursday 01 June 2006 09:56, Peter Kümmel wrote:
> Hi Brad, thanks for your immediate answer!
>
> Brad King wrote:
> >> SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/chatinterface.mo
> >>c GENERATED)
> >
> > You shouldn't need the GENERATED property.  That is automatically added
> > by ADD_CUSTOM_COMMAND because the files are outputs.
>
> Yes, you are right I could remove them.
> (Yesterday I got some errors before I've cleaned up the code for the post)
>
> >> +       SET(chat_SRCS ${chat_SRCS} chatmainwindow.h chatsetnickname.h
> >> chatinterface.moc )
> >
> > Adding the output of a custom command to the list of sources should be
> > enough to pull it in.
> >
> >> +endif(MSVC_IDE)
> >>  ADD_CUSTOM_COMMAND(OUTPUT chatmainwindow.h
> >>                    COMMAND ${QT_UIC_EXECUTABLE}
> >>                    ARGS -o chatmainwindow.h
> >> ${CMAKE_CURRENT_SOURCE_DIR}/chatmainwindow.ui
> >>
> >> Why must I do it by hand? Couldn't it be figured out by cmake?

Why did you actually use add_custom_command() directly instead using 
qt4_wrap_ui() which comes with FindQt4.cmake ?

qt4_wrap_ui(mySource widget1.ui mydialog.ui)

If it doesn't work, it should be fixed.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list