From 590dda3b288ed739cb0577ed566371687d19fad5 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Wed, 25 Nov 2015 05:15:37 +0000 Subject: [PATCH] kdevplatform: make webkit optional Signed-off-by: Ivailo Monev --- kdevplatform/documentation/CMakeLists.txt | 41 ++++++++++++++++--------------- 1 file changed, 21 insertions(+), 20 deletions(-) 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 -- 2.11.0