3 find_package(KDE4 REQUIRED)
6 include(${QT_USE_FILE})
7 include_directories(${KDE4_INCLUDES}
17 add_subdirectory (mimetypes)
18 add_subdirectory (songdb)
19 add_subdirectory (bible)
21 set(kworshiparchive_SRCS
22 archive/KwResourceLink.cpp
23 archive/KwResourceManager.cpp
24 archive/KwDataFile.cpp
28 css/KwCssAbstractStyle.cpp
29 css/KwCssAbstractStyleState.cpp
34 css/KwCssStyleStates.cpp
35 css/KwCssStyleRule.cpp
36 css/KwCssStyleSheet.cpp
37 css/KwCssStyleSheetFile.cpp
39 set(kworshipdisplay_SRCS
40 display/KwAbstractDisplay.cpp
41 display/KwLocalDisplayController.cpp
42 display/KwRemoteDisplayController.cpp
43 display/KwLocalDisplay.cpp
44 display/KwLocalDisplayPreview.cpp
45 display/KwRemoteDisplay.cpp
46 display/KwLoggingDisplay.cpp
47 display/KwDisplayMixer.cpp
48 display/KwAbstractLayer.cpp
49 display/KwImageLayer.cpp
50 display/KwVideoLayer.cpp
51 display/KwImageWidget.cpp
52 display/KwTextLayer.cpp
53 display/KwDisplayManager.cpp
54 display/KwAbstractDisplayManager.cpp
55 display/KwBackgroundManager.cpp
56 display/KwTextManager.cpp
57 display/KwOverlayManager.cpp
58 display/KwDisplayStyles.cpp
60 set(kworshipmedia_SRCS
61 media/KwMediaManager.cpp
62 media/KwMediaPreferencesSequence.cpp
63 media/KwMediaPreferencesAudio.cpp
64 media/KwMediaControlWidget.cpp
65 media/KwMediaControlWidgetAudio.cpp
66 media/KwMediaControlWidgetSequence.cpp
67 media/KwMediaControlWidgetVisual.cpp
68 media/KwAbstractMediaPreferences.cpp
69 media/KwMediaPreferencesVisual.cpp
72 set(kworshipplaylist_SRCS
73 playlist/KwPlaylistNode.cpp
74 playlist/KwPlaylistModel.cpp
75 playlist/KwPlaylistFile.cpp
76 playlist/KwPlaylistFileNode.cpp
77 playlist/KwPlaylistImage.cpp
78 playlist/KwPlaylistVideo.cpp
79 playlist/KwPlaylistItem.cpp
80 playlist/KwPlaylistUnknown.cpp
81 playlist/KwPlaylistUnknownNode.cpp
82 playlist/KwPlaylistPaged.cpp
83 playlist/KwPlaylistPagedNode.cpp
84 playlist/KwPlaylistPagedNodePage.cpp
85 playlist/KwPlaylistList.cpp
86 playlist/KwPlaylistListNode.cpp
87 playlist/KwPlaylistNote.cpp
88 playlist/KwPlaylistNoteNode.cpp
89 playlist/KwPlaylistPresentation.cpp
90 playlist/KwPlaylistText.cpp
91 playlist/KwPlaylistTextNode.cpp
114 KwKWorshipFilterData.cpp
115 ${kworshiparchive_SRCS}
117 ${kworshipdisplay_SRCS}
118 ${kworshipmedia_SRCS}
119 ${kworshipplaylist_SRCS}
122 kde4_add_ui_files(kworshipmain_SRCS
126 prefsDatabase_base.ui
127 prefsPresentations_base.ui
130 kde4_add_kcfg_files(kworshipmain_SRCS settings.kcfgc )
132 # Shared library with everything in
133 kde4_add_library(kworshipmain SHARED ${kworshipmain_SRCS})
134 target_link_libraries(kworshipmain
147 kde4_add_executable(kworship ${kworship_SRCS})
148 target_link_libraries(kworship kworshipmain)
150 ########### install files ###############
152 install(TARGETS kworshipmain DESTINATION ${LIB_INSTALL_DIR} )
153 install(TARGETS kworship DESTINATION ${BIN_INSTALL_DIR} )
155 install( FILES kworship.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
156 install( FILES kworship.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
157 install( FILES kworshipui.rc DESTINATION ${DATA_INSTALL_DIR}/kworship )
158 install( FILES kworship_plugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )