2015-09-03 08:02:00 +00:00
|
|
|
find_package(LibXslt)
|
|
|
|
set_package_properties(LibXslt PROPERTIES
|
|
|
|
URL "http://xmlsoft.org/XSLT"
|
|
|
|
TYPE REQUIRED
|
|
|
|
PURPOSE "Required by the KDE help system to process DocBook XML"
|
|
|
|
)
|
|
|
|
|
|
|
|
find_package(LibXml2)
|
|
|
|
set_package_properties(LibXml2 PROPERTIES
|
|
|
|
URL "http://xmlsoft.org"
|
|
|
|
TYPE REQUIRED
|
|
|
|
PURPOSE "Required by the KDE help system to process DocBook XML"
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories( ${KDE4_KIO_INCLUDES} )
|
|
|
|
|
|
|
|
include_directories( ${LIBXML2_INCLUDE_DIR} ${LIBXSLT_INCLUDE_DIR} )
|
|
|
|
|
2015-02-27 09:29:54 +00:00
|
|
|
add_subdirectory( plugins )
|
|
|
|
add_subdirectory( searchhandlers )
|
2015-09-03 05:30:13 +00:00
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory( tests )
|
|
|
|
endif()
|
2015-02-27 09:29:54 +00:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-09-03 08:02:00 +00:00
|
|
|
set(kio_help_PART_SRCS
|
|
|
|
slave/kio_help.cpp
|
|
|
|
slave/main.cpp
|
|
|
|
slave/xslt.cpp
|
|
|
|
slave/xslt_help.cpp
|
|
|
|
slave/xslt_kde.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
kde4_add_plugin(kio_help ${kio_help_PART_SRCS})
|
|
|
|
|
|
|
|
target_link_libraries(kio_help
|
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
kio
|
|
|
|
${LIBXML2_LIBRARIES}
|
|
|
|
${LIBXSLT_LIBRARIES}
|
|
|
|
${LIBEXSLT_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS kio_help DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
install(FILES slave/help.protocol DESTINATION ${SERVICES_INSTALL_DIR})
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-02-27 09:29:54 +00:00
|
|
|
set(khc_indexbuilder_SRCS khc_indexbuilder.cpp )
|
|
|
|
|
|
|
|
|
2015-09-03 05:30:13 +00:00
|
|
|
add_executable(khc_indexbuilder ${khc_indexbuilder_SRCS})
|
2015-02-27 09:29:54 +00:00
|
|
|
|
|
|
|
target_link_libraries(khc_indexbuilder ${KDE4_KDECORE_LIBS} )
|
|
|
|
|
|
|
|
install(TARGETS khc_indexbuilder DESTINATION ${LIBEXEC_INSTALL_DIR})
|
|
|
|
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-09-03 05:30:13 +00:00
|
|
|
set(khelpcenter_SRCS
|
2015-02-27 09:29:54 +00:00
|
|
|
navigator.cpp
|
|
|
|
navigatoritem.cpp
|
|
|
|
navigatorappitem.cpp
|
|
|
|
view.cpp
|
|
|
|
searchwidget.cpp
|
|
|
|
searchengine.cpp
|
|
|
|
docmetainfo.cpp
|
|
|
|
docentrytraverser.cpp
|
|
|
|
formatter.cpp
|
|
|
|
glossary.cpp
|
|
|
|
toc.cpp
|
|
|
|
mainwindow.cpp
|
|
|
|
docentry.cpp
|
|
|
|
htmlsearch.cpp
|
|
|
|
history.cpp
|
|
|
|
application.cpp
|
|
|
|
treebuilder.cpp
|
|
|
|
infotree.cpp
|
|
|
|
kcmhelpcenter.cpp
|
|
|
|
htmlsearchconfig.cpp
|
|
|
|
fontdialog.cpp
|
|
|
|
plugintraverser.cpp
|
|
|
|
scrollkeepertreebuilder.cpp
|
|
|
|
searchhandler.cpp )
|
|
|
|
|
2015-09-03 05:30:13 +00:00
|
|
|
qt4_add_dbus_adaptor( khelpcenter_SRCS org.kde.khelpcenter.kcmhelpcenter.xml kcmhelpcenter.h KCMHelpCenter )
|
2015-02-27 09:29:54 +00:00
|
|
|
|
2015-09-03 05:30:13 +00:00
|
|
|
kde4_add_kcfg_files(khelpcenter_SRCS prefs.kcfgc )
|
2015-02-27 09:29:54 +00:00
|
|
|
|
2015-09-03 05:30:13 +00:00
|
|
|
add_executable( khelpcenter ${khelpcenter_SRCS})
|
|
|
|
target_link_libraries(khelpcenter ${KDE4_KPARTS_LIBS} ${KDE4_KDEWEBKIT_LIBS} ${QT_QTXML_LIBRARY} ${KDE4_KCMUTILS_LIBS} )
|
2015-02-27 09:29:54 +00:00
|
|
|
install(TARGETS khelpcenter ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
|
|
|
install( PROGRAMS Help.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
|
|
|
|
install( FILES khelpcenter.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
|
|
|
|
install( FILES khelpcenter.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
install( FILES khelpcenterui.rc glossary.html.in table-of-contents.xslt glossary.xslt index.html.in DESTINATION ${DATA_INSTALL_DIR}/khelpcenter )
|
|
|
|
install( FILES org.kde.khelpcenter.kcmhelpcenter.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR})
|