More filter infrastructure
[kworship.git] / kworship / CMakeLists.txt
blobcf19671e11576771c39b92f47934e8f09433e2c8
1 project(kworship)
3 find_package(KDE4 REQUIRED)
4 include (KDE4Defaults)
5 set(QT_USE_QTSQL 1)
6 include(${QT_USE_FILE})
7 include_directories(${KDE4_INCLUDES}
8                     ${QT_INCLUDES}
9                     ../unipresent/common
10                     media
11                     display
12                     css
13                     songdb
14                     playlist
15                     archive
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
25     archive/KwArchive.cpp
27 set(kworshipcss_SRCS
28     css/KwCssAbstractStyle.cpp
29     css/KwCssAbstractStyleState.cpp
30     css/KwCssScope.cpp
31     css/KwCssScopeKey.cpp
32     css/KwCssStyles.cpp
33     css/KwCssStyle.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
70     media/KwMediaItem.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
94 set(kworshipmain_SRCS
95     main.cpp
96     KwApplication.cpp
97     kworship.cpp
98     kworshipview.cpp
99     prefsDisplay.cpp
100     prefsDatabase.cpp
101     DesktopView.cpp
102     KwDatabaseSetup.cpp
103     KwDocument.cpp
104     KwPlugin.cpp
105     KwPluginManager.cpp
106     KwFilter.cpp
107     KwImportFilter.cpp
108     KwExportFilter.cpp
109     KwLoadSaveFilter.cpp
110     KwFilterManager.cpp
111     KwFilterData.cpp
112     KwFilterObject.cpp
113     KwKWorshipFilter.cpp
114     KwKWorshipFilterData.cpp
115     ${kworshiparchive_SRCS}
116     ${kworshipcss_SRCS}
117     ${kworshipdisplay_SRCS}
118     ${kworshipmedia_SRCS}
119     ${kworshipplaylist_SRCS}
122 kde4_add_ui_files(kworshipmain_SRCS
123                   kworshipview_base.ui
124                   prefs_base.ui
125                   prefsDisplay_base.ui
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
135                       ${KDE4_KDEUI_LIBS}
136                       ${KDE4_KIO_LIBS}
137                       ${KDE4_KHTML_LIBS}
138                       ${QT_LIBRARIES}
139                       ${PHONON_LIBS}
140                       unipresent
141                       kworshipsongdb
144 set(kworship_SRCS
145     kworshipexe.cpp
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} )