Basic sword integration, verse at time keys, very basic\!
[kworship.git] / kworship / CMakeLists.txt
blob24cfbb643f304e2edf3a125d371c60d1e365fbf6
1 project(kworship)
3 find_package(UNO REQUIRED)
4 find_package(Sword REQUIRED)
5 find_package(KDE4 REQUIRED)
6 include (KDE4Defaults)
7 set(QT_USE_QTSQL 1)
8 include(${QT_USE_FILE})
9 include_directories(${KDE4_INCLUDES}
10                     ${QT_INCLUDES}
11                     ../unipresent/common
12                     ../unipresent/kpresenter1
13                     ../unipresent/kpresenter2
14                     ../unipresent/openoffice.org
15                     media
16                     display
17                     css
18                     songdb
19                     bible
20                     playlist
21                     archive
23 add_subdirectory (media)
24 add_subdirectory (display)
25 add_subdirectory (css)
26 add_subdirectory (songdb)
27 add_subdirectory (bible)
28 add_subdirectory (playlist)
29 add_subdirectory (archive)
31 set(kworship_SRCS
32     kworship.cpp
33     main.cpp
34     kworshipview.cpp
35     prefsDisplay.cpp
36     prefsSongDB.cpp
37     DesktopView.cpp
38     KwDatabaseSetup.cpp
39     KwDocument.cpp
42 kde4_add_ui_files(kworship_SRCS
43                   kworshipview_base.ui
44                   prefs_base.ui
45                   prefsDisplay_base.ui
46                   prefsSongDB_base.ui
47                   prefsPresentations_base.ui
50 kde4_add_kcfg_files(kworship_SRCS settings.kcfgc )
52 kde4_add_executable(kworship ${kworship_SRCS})
54 target_link_libraries(kworship
55                       ${KDE4_KDEUI_LIBS}
56                       ${KDE4_KIO_LIBS}
57                       ${QT_LIBRARIES}
58                       ${PHONON_LIBS}
59                       ${SWORD_LIBS}
60                       unipresent
61                       unipresentkpresenter1
62                       unipresentkpresenter2
63                       unipresentopenoffice
64                       kworshiparchive
65                       kworshipplaylist
66                       kworshipcss
67                       kworshipbible
68                       kworshipsongdb
69                       kworshipdisplay
70                       kworshipmedia
73 install(TARGETS kworship DESTINATION ${BIN_INSTALL_DIR} )
76 ########### install files ###############
78 install( FILES kworship.desktop  DESTINATION  ${XDG_APPS_INSTALL_DIR} )
79 install( FILES kworship.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
80 install( FILES kworshipui.rc  DESTINATION  ${DATA_INSTALL_DIR}/kworship )