Warning, /network/konqueror/sidebar/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include_directories (${CMAKE_CURRENT_SOURCE_DIR}) 0002 find_package(KF${KF_MAJOR_VERSION} REQUIRED COMPONENTS JobWidgets IconThemes) 0003 0004 #Used in subdirectories to install the plugins in the correct place 0005 #NOTE: it must be set before calling add_subdirectory 0006 set(KONQ_SIDEBAR_PLUGIN_DIR "${KDE_INSTALL_PLUGINDIR}/konqueror/sidebar") 0007 0008 #TODO KF6: check what to do with this: either port it to Qt6 or remove it 0009 if (${QT_QT3SUPPORT_FOUND}) 0010 add_subdirectory( trees ) 0011 endif() 0012 0013 add_subdirectory( bookmarks_module ) 0014 add_subdirectory( tree_module ) 0015 #TODO KF6: check what to do with this: either port it to WebEnginePart or remove it 0016 # add_subdirectory( web_module ) # requires refactoring away from KHtml 0017 add_subdirectory( history_module ) 0018 add_subdirectory( places_module ) 0019 add_subdirectory( default_entries ) 0020 if(BUILD_TESTING) 0021 add_subdirectory( test ) 0022 endif() 0023 0024 ecm_qt_declare_logging_category(sidebar_DEBUG_SRCS HEADER sidebar_debug.h IDENTIFIER SIDEBAR_LOG CATEGORY_NAME org.kde.konqueror.sidebar) 0025 0026 ########### konqsidebarplugin lib: contains the base class for plugins ############### 0027 0028 set(konqsidebarplugin_LIB_SRCS konqsidebarplugin.cpp ) 0029 0030 add_library(konqsidebarplugin SHARED ${konqsidebarplugin_LIB_SRCS} ${sidebar_DEBUG_SRCS}) 0031 0032 target_link_libraries(konqsidebarplugin KF${KF_MAJOR_VERSION}::Parts KF${KF_MAJOR_VERSION}::KIOFileWidgets KF${KF_MAJOR_VERSION}Konq) 0033 set_target_properties(konqsidebarplugin PROPERTIES VERSION ${KONQUEROR_LIB_VERSION} SOVERSION "${KF_MAJOR_VERSION}" ) 0034 install(TARGETS konqsidebarplugin ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) 0035 0036 ########### konq_sidebar plugin: contains the KParts used by konqueror ############### 0037 0038 set(konq_sidebar_VERSION 0.2) 0039 0040 configure_file(konq_sidebartng.json.in ${CMAKE_CURRENT_BINARY_DIR}/konq_sidebartng.json) 0041 0042 set(konq_sidebar_PART_SRCS 0043 sidebar_part.cpp 0044 sidebar_widget.cpp 0045 module_manager.cpp 0046 konqmultitabbar.cpp 0047 ) 0048 0049 add_library(konq_sidebar MODULE ${konq_sidebar_PART_SRCS} ${sidebar_DEBUG_SRCS}) 0050 0051 target_link_libraries(konq_sidebar 0052 KF${KF_MAJOR_VERSION}::I18n 0053 KF${KF_MAJOR_VERSION}::Parts 0054 KF${KF_MAJOR_VERSION}::Konq 0055 KF${KF_MAJOR_VERSION}::KCMUtils 0056 KF${KF_MAJOR_VERSION}::IconThemes 0057 KF${KF_MAJOR_VERSION}::KIOFileWidgets 0058 konqsidebarplugin) 0059 0060 if (KF_MAJOR_VERSION STRGREATER "5") 0061 target_link_libraries(konq_sidebar KF${KF_MAJOR_VERSION}::IconWidgets) 0062 endif() 0063 0064 install(TARGETS konq_sidebar DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf${KF_MAJOR_VERSION}/parts) 0065 0066 ########### install files ############### 0067 0068 install( FILES konqsidebartngrc DESTINATION ${KDE_INSTALL_CONFDIR} ) 0069 install( FILES konqsidebarplugin.h DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF} COMPONENT Devel )