Warning, /network/konqueror/plugins/webarchiver/thumbnailer/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 
0002 option(THUMBNAIL_USE_WEBKIT "Use WebKit to generate HTML and web archive thumbnails" OFF)
0003 
0004 if (THUMBNAIL_USE_WEBKIT)
0005   find_package(Qt${KF_MAJOR_VERSION} REQUIRED WebKit WebKitWidgets)
0006   add_definitions(-DTHUMBNAIL_USE_WEBKIT)
0007 else ()
0008   find_package(Qt${KF_MAJOR_VERSION} REQUIRED COMPONENTS WebEngineCore WebEngineWidgets)
0009 endif ()
0010 
0011 find_package(KF${KF_MAJOR_VERSION} REQUIRED COMPONENTS KIO Archive)
0012 
0013 ########### next target ###############
0014 
0015 set(webarchivethumbnail_SRCS webarchivecreator.cpp )
0016 add_library(webarchivethumbnail MODULE ${webarchivethumbnail_SRCS} ${webarchiverplugin_DEBUG_SRCS})
0017 target_include_directories(webarchivethumbnail PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
0018 target_link_libraries(webarchivethumbnail
0019   KF${KF_MAJOR_VERSION}::KIOWidgets
0020   KF${KF_MAJOR_VERSION}::Archive
0021 )
0022 
0023 if (THUMBNAIL_USE_WEBKIT)
0024   target_link_libraries(webarchivethumbnail Qt${KF_MAJOR_VERSION}::WebKit Qt${KF_MAJOR_VERSION}::WebKitWidgets)
0025 else ()
0026   target_link_libraries(webarchivethumbnail Qt${KF_MAJOR_VERSION}::WebEngineCore Qt${KF_MAJOR_VERSION}::WebEngineWidgets)
0027 endif ()
0028 
0029 ########### install files ###############
0030 
0031 install(TARGETS webarchivethumbnail  DESTINATION ${KDE_INSTALL_PLUGINDIR} )