Plugin system for bible backends and various tweaks to plugin code included debug...
[kworship.git] / kworship / CMakeLists.txt
blob1e4fe470aaa0d963f8b91fc0a223e82c2e409666
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 (songdb)
18 add_subdirectory (bible)
20 set(kworshiparchive_SRCS
21     archive/KwResourceLink.cpp
22     archive/KwResourceManager.cpp
23     archive/KwDataFile.cpp
24     archive/KwArchive.cpp
26 set(kworshipcss_SRCS
27     css/KwCssAbstractStyle.cpp
28     css/KwCssAbstractStyleState.cpp
29     css/KwCssScope.cpp
30     css/KwCssScopeKey.cpp
31     css/KwCssStyles.cpp
32     css/KwCssStyle.cpp
33     css/KwCssStyleStates.cpp
34     css/KwCssStyleRule.cpp
35     css/KwCssStyleSheet.cpp
36     css/KwCssStyleSheetFile.cpp
38 set(kworshipdisplay_SRCS
39     display/KwAbstractDisplay.cpp
40     display/KwLocalDisplayController.cpp
41     display/KwRemoteDisplayController.cpp
42     display/KwLocalDisplay.cpp
43     display/KwLocalDisplayPreview.cpp
44     display/KwRemoteDisplay.cpp
45     display/KwLoggingDisplay.cpp
46     display/KwDisplayMixer.cpp
47     display/KwAbstractLayer.cpp
48     display/KwImageLayer.cpp
49     display/KwVideoLayer.cpp
50     display/KwImageWidget.cpp
51     display/KwTextLayer.cpp
52     display/KwDisplayManager.cpp
53     display/KwAbstractDisplayManager.cpp
54     display/KwBackgroundManager.cpp
55     display/KwTextManager.cpp
56     display/KwOverlayManager.cpp
57     display/KwDisplayStyles.cpp
59 set(kworshipmedia_SRCS
60     media/KwMediaManager.cpp
61     media/KwMediaPreferencesSequence.cpp
62     media/KwMediaPreferencesAudio.cpp
63     media/KwMediaControlWidget.cpp
64     media/KwMediaControlWidgetAudio.cpp
65     media/KwMediaControlWidgetSequence.cpp
66     media/KwMediaControlWidgetVisual.cpp
67     media/KwAbstractMediaPreferences.cpp
68     media/KwMediaPreferencesVisual.cpp
69     media/KwMediaItem.cpp
71 set(kworshipplaylist_SRCS
72     playlist/KwPlaylistNode.cpp
73     playlist/KwPlaylistModel.cpp
74     playlist/KwPlaylistFile.cpp
75     playlist/KwPlaylistFileNode.cpp
76     playlist/KwPlaylistImage.cpp
77     playlist/KwPlaylistVideo.cpp
78     playlist/KwPlaylistItem.cpp
79     playlist/KwPlaylistUnknown.cpp
80     playlist/KwPlaylistUnknownNode.cpp
81     playlist/KwPlaylistPaged.cpp
82     playlist/KwPlaylistPagedNode.cpp
83     playlist/KwPlaylistPagedNodePage.cpp
84     playlist/KwPlaylistList.cpp
85     playlist/KwPlaylistListNode.cpp
86     playlist/KwPlaylistNote.cpp
87     playlist/KwPlaylistNoteNode.cpp
88     playlist/KwPlaylistPresentation.cpp
89     playlist/KwPlaylistSong.cpp
90     playlist/KwPlaylistSongNode.cpp
91     playlist/KwPlaylistSongNodeVerse.cpp
92     playlist/KwPlaylistText.cpp
93     playlist/KwPlaylistTextNode.cpp
96 set(kworshipmain_SRCS
97     main.cpp
98     KwApplication.cpp
99     kworship.cpp
100     kworshipview.cpp
101     prefsDisplay.cpp
102     prefsSongDB.cpp
103     DesktopView.cpp
104     KwDatabaseSetup.cpp
105     KwDocument.cpp
106     KwPlugin.cpp
107     KwPluginManager.cpp
108     ${kworshiparchive_SRCS}
109     ${kworshipcss_SRCS}
110     ${kworshipdisplay_SRCS}
111     ${kworshipmedia_SRCS}
112     ${kworshipplaylist_SRCS}
115 kde4_add_ui_files(kworshipmain_SRCS
116                   kworshipview_base.ui
117                   prefs_base.ui
118                   prefsDisplay_base.ui
119                   prefsSongDB_base.ui
120                   prefsPresentations_base.ui
123 kde4_add_kcfg_files(kworshipmain_SRCS settings.kcfgc )
125 # Shared library with everything in
126 kde4_add_library(kworshipmain SHARED ${kworshipmain_SRCS})
127 target_link_libraries(kworshipmain
128                       ${KDE4_KDEUI_LIBS}
129                       ${KDE4_KIO_LIBS}
130                       ${KDE4_KHTML_LIBS}
131                       ${QT_LIBRARIES}
132                       ${PHONON_LIBS}
133                       unipresent
134                       kworshipsongdb
137 set(kworship_SRCS
138     kworshipexe.cpp
140 kde4_add_executable(kworship ${kworship_SRCS})
141 target_link_libraries(kworship kworshipmain)
143 ########### install files ###############
145 install(TARGETS kworshipmain DESTINATION ${LIB_INSTALL_DIR} )
146 install(TARGETS kworship DESTINATION ${BIN_INSTALL_DIR} )
148 install( FILES kworship.desktop  DESTINATION  ${XDG_APPS_INSTALL_DIR} )
149 install( FILES kworship.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
150 install( FILES kworshipui.rc  DESTINATION  ${DATA_INSTALL_DIR}/kworship )
151 install( FILES kworship_plugin.desktop  DESTINATION  ${SERVICETYPES_INSTALL_DIR} )