From: Ivailo Monev Date: Wed, 25 Nov 2015 05:15:37 +0000 (+0000) Subject: kdevplatform: make webkit optional X-Git-Tag: 4.22.0~935 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=590dda3b288ed739cb0577ed566371687d19fad5;p=kde%2Fkde-extraapps.git kdevplatform: make webkit optional Signed-off-by: Ivailo Monev --- diff --git a/kdevplatform/documentation/CMakeLists.txt b/kdevplatform/documentation/CMakeLists.txt index 1747cd51..d18e3a9a 100644 --- a/kdevplatform/documentation/CMakeLists.txt +++ b/kdevplatform/documentation/CMakeLists.txt @@ -1,26 +1,27 @@ -macro_log_feature(QT_QTWEBKIT_FOUND "QtWebKit" "QtWebKit, for integrated documentation" "http://qt-project.org/" TRUE) +macro_log_feature(QT_QTWEBKIT_FOUND "QtWebKit" "QtWebKit, for integrated documentation" "http://qt-project.org/" FALSE) +if(QT_QTWEBKIT_FOUND) + set(kdevplatformdocumentation_LIB_SRCS + standarddocumentationview.cpp + documentationfindwidget.cpp + documentationview.cpp + documentationfindwidget.ui + ) -set(kdevplatformdocumentation_LIB_SRCS - standarddocumentationview.cpp - documentationfindwidget.cpp - documentationview.cpp - documentationfindwidget.ui -) + add_library(kdevplatformdocumentation SHARED ${kdevplatformdocumentation_LIB_SRCS}) -add_library(kdevplatformdocumentation SHARED ${kdevplatformdocumentation_LIB_SRCS}) + install(TARGETS kdevplatformdocumentation EXPORT KDevPlatformTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) -install(TARGETS kdevplatformdocumentation EXPORT KDevPlatformTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) + target_link_libraries(kdevplatformdocumentation + LINK_PRIVATE ${QT_QTWEBKIT_LIBRARY} + LINK_PUBLIC kdevplatforminterfaces) -target_link_libraries(kdevplatformdocumentation - LINK_PRIVATE ${QT_QTWEBKIT_LIBRARY} - LINK_PUBLIC kdevplatforminterfaces) + set_target_properties(kdevplatformdocumentation PROPERTIES VERSION ${KDEVPLATFORM_LIB_VERSION} SOVERSION ${KDEVPLATFORM_LIB_SOVERSION}) -set_target_properties(kdevplatformdocumentation PROPERTIES VERSION ${KDEVPLATFORM_LIB_VERSION} SOVERSION ${KDEVPLATFORM_LIB_SOVERSION}) - -install(FILES - documentationexport.h - documentationfindwidget.h - standarddocumentationview.h - DESTINATION ${INCLUDE_INSTALL_DIR}/kdevplatform/documentation COMPONENT Devel - ) + install(FILES + documentationexport.h + documentationfindwidget.h + standarddocumentationview.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kdevplatform/documentation COMPONENT Devel + ) +endif() \ No newline at end of file