set(qt4_SOURCES qt4.cpp menus.cpp main_interface.cpp dialogs_provider.cpp input_manager.cpp recents.cpp dialogs/playlist.cpp dialogs/bookmarks.cpp dialogs/preferences.cpp dialogs/mediainfo.cpp dialogs/extended.cpp dialogs/messages.cpp dialogs/errors.cpp dialogs/interaction.cpp dialogs/sout.cpp dialogs/help.cpp dialogs/gototime.cpp dialogs/open.cpp dialogs/vlm.cpp dialogs/podcast_configuration.cpp components/extended_panels.cpp components/info_panels.cpp components/preferences_widgets.cpp components/complete_preferences.cpp components/simple_preferences.cpp components/open_panels.cpp components/interface_widgets.cpp components/playlist/playlist_model.cpp components/playlist/playlist_item.cpp components/playlist/standardpanel.cpp components/playlist/playlist.cpp components/playlist/selector.cpp util/input_slider.cpp util/customwidgets.cpp util/registry.cpp )
set(qt4_UIS ui/equalizer.ui ui/v4l2.ui ui/video_effects.ui ui/open_file.ui ui/open_disk.ui ui/open_net.ui ui/open_capture.ui ui/open.ui ui/podcast_configuration.ui ui/sprefs_audio.ui ui/sprefs_input.ui ui/sprefs_interface.ui ui/sprefs_subtitles.ui ui/sprefs_video.ui ui/streampanel.ui ui/sout.ui ui/vlm.ui ) 
set(qt4_HEADERS
    components/complete_preferences.hpp
    components/extended_panels.hpp
    components/info_panels.hpp
    components/interface_widgets.hpp
    components/open_panels.hpp
    components/playlist/panels.hpp
    components/playlist/playlist.hpp
    components/playlist/playlist_item.hpp
    components/playlist/playlist_model.hpp
    components/playlist/selector.hpp
    components/preferences_widgets.hpp
    components/simple_preferences.hpp
    dialogs/bookmarks.hpp
    dialogs/errors.hpp
    dialogs/extended.hpp
    dialogs/gototime.hpp
    dialogs/help.hpp
    dialogs/interaction.hpp
    dialogs/mediainfo.hpp
    dialogs/messages.hpp
    dialogs/open.hpp
    dialogs/playlist.hpp
    dialogs/podcast_configuration.hpp
    dialogs/preferences.hpp
    dialogs/sout.hpp
    dialogs/vlm.hpp
    dialogs_provider.hpp
    input_manager.hpp
    main_interface.hpp
    menus.hpp
    qt4.hpp
    recents.hpp
    util/customwidgets.hpp
    util/input_slider.hpp
    util/qvlcframe.hpp
    util/registry.hpp
)
if(QT4_FOUND)
    include_directories(${CMAKE_CURRENT_BINARY_DIR})
    vlc_get_module_compile_flags( MOC_FLAGS qt4 )
    set(MOC_FLAGS "-DHAVE_CONFIG_H ${MOC_FLAGS}")
    vlc_qt4_generate_moc(qt4_MOCS ${MOC_FLAGS} ${qt4_HEADERS})
    vlc_qt4_wrap_ui(qt4_UIS_H ${qt4_UIS})
    qt4_add_resources(qt4_SRCS vlc.qrc)
endif(QT4_FOUND)

vlc_add_module(qt4 ${qt4_SOURCES} ${qt4_SRCS} ${qt4_MOCS} ${qt4_UIS})

