kde-extraapps/kdevelop/documentation/qthelp/CMakeLists.txt
2015-07-26 14:23:17 +03:00

40 lines
1.4 KiB
CMake

add_definitions( -DKDE_DEFAULT_DEBUG_AREA=9045 )
add_subdirectory(tests)
set(kdevqthelp_SRCS
qthelpplugin.cpp
qthelpproviderabstract.cpp
qthelpprovider.cpp
qthelpdocumentation.cpp
qthelpqtdoc.cpp
qthelp_config_shared.cpp
)
kde4_add_plugin(kdevqthelp ${kdevqthelp_SRCS})
target_link_libraries(kdevqthelp
${KDE4_KCMUTILS_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KTEXTEDITOR_LIBS} ${QT_QTHELP_LIBRARY} ${QT_QTWEBKIT_LIBRARY}
${KDEVPLATFORM_LANGUAGE_LIBRARIES} ${KDEVPLATFORM_DOCUMENTATION_LIBRARIES} ${KDEVPLATFORM_INTERFACES_LIBRARIES})
install(TARGETS kdevqthelp DESTINATION ${PLUGIN_INSTALL_DIR})
configure_file(kdevqthelp.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/kdevqthelp.desktop)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kdevqthelp.desktop DESTINATION ${SERVICES_INSTALL_DIR})
### Configuration module for QtHelp plugin
set(kdevqthelp_config_SRCS
qthelpconfig.cpp
qthelp_config_shared.cpp
)
kde4_add_ui_files(kdevqthelp_config_SRCS
qthelpconfig.ui
qthelpconfigeditdialog.ui
)
kde4_add_plugin( kdevqthelp_config ${kdevqthelp_config_SRCS} )
target_link_libraries( kdevqthelp_config ${KDE4_KUTILS_LIBS} ${KDE4_KIO_LIBS} ${QT_QTHELP_LIBRARY} ${KDE4_KNEWSTUFF3_LIBS})
install( TARGETS kdevqthelp_config DESTINATION ${PLUGIN_INSTALL_DIR} )
install( FILES kdevqthelp_config.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES kdevelop-qthelp.knsrc DESTINATION ${CONFIG_INSTALL_DIR} )