Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / runtime / khelpcenter / CMakeLists.txt
blob648ea8223dc9783bce0724856e8e191cdc8c9e20
1 add_subdirectory( plugins ) 
2 add_subdirectory( pics ) 
3 add_subdirectory( searchhandlers ) 
4 add_subdirectory( tests ) 
6 add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
8 ########### next target ###############
10 set(khc_indexbuilder_SRCS khc_indexbuilder.cpp )
13 kde4_add_executable(khc_indexbuilder NOGUI ${khc_indexbuilder_SRCS})
15 target_link_libraries(khc_indexbuilder  ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KDECORE_LIBS} )
17 install(TARGETS khc_indexbuilder DESTINATION ${LIBEXEC_INSTALL_DIR})
20 ########### next target ###############
22 set(khelpcenter_KDEINIT_SRCS 
23    navigator.cpp 
24    navigatoritem.cpp 
25    navigatorappitem.cpp 
26    view.cpp 
27    searchwidget.cpp 
28    searchengine.cpp 
29    docmetainfo.cpp 
30    docentrytraverser.cpp 
31    formatter.cpp 
32    glossary.cpp 
33    toc.cpp 
34    mainwindow.cpp 
35    docentry.cpp 
36    htmlsearch.cpp 
37    history.cpp 
38    application.cpp 
39    treebuilder.cpp 
40    infotree.cpp 
41    kcmhelpcenter.cpp 
42    htmlsearchconfig.cpp 
43    fontdialog.cpp 
44    plugintraverser.cpp 
45    scrollkeepertreebuilder.cpp 
46    searchhandler.cpp )
48 qt4_add_dbus_adaptor( khelpcenter_KDEINIT_SRCS org.kde.khelpcenter.kcmhelpcenter.xml kcmhelpcenter.h KCMHelpCenter )
50 kde4_add_kcfg_files(khelpcenter_KDEINIT_SRCS prefs.kcfgc )
52 if (WIN32)
53     # there is no kdeinit support on win32
54     kde4_add_app_icon(khelpcenter_KDEINIT_SRCS "${KDE4_INSTALL_DIR}/share/icons/oxygen/*/apps/help-browser.png")
55     kde4_add_executable(khelpcenter ${khelpcenter_KDEINIT_SRCS})
56     set_target_properties(khelpcenter PROPERTIES COMPILE_FLAGS "-Dkdemain=main")
57     target_link_libraries(khelpcenter  ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KHTML_LIBS}  ${QT_QTXML_LIBRARY}  )
58     install(TARGETS khelpcenter DESTINATION ${BIN_INSTALL_DIR})
59 else (WIN32)
60     kde4_add_kdeinit_executable( khelpcenter ${khelpcenter_KDEINIT_SRCS})
61     target_link_libraries(kdeinit_khelpcenter  ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KHTML_LIBS}  ${QT_QTXML_LIBRARY}  )
62     install(TARGETS kdeinit_khelpcenter  DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS} )
63     target_link_libraries( khelpcenter kdeinit_khelpcenter )
64     install(TARGETS khelpcenter DESTINATION ${BIN_INSTALL_DIR})
65 endif (WIN32)
68 ########### install files ###############
70 install( FILES Help.desktop  DESTINATION  ${XDG_APPS_INSTALL_DIR} )
71 install( FILES khelpcenter.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
72 install( FILES khelpcenter.desktop  DESTINATION  ${SERVICES_INSTALL_DIR} )
73 install( FILES khelpcenterui.rc intro.html.in glossary.html.in table-of-contents.xslt   glossary.xslt index.html.in  DESTINATION  ${DATA_INSTALL_DIR}/khelpcenter )
74 install( FILES org.kde.khelpcenter.kcmhelpcenter.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR})