Warning, /plasma/plasma-workspace/runners/bookmarks/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2023 Alexander Lohnau <alexander.lohnau@gmx.de>
0002 # SPDX-License-Identifier: BSD-2-Clause
0003 add_definitions(-DTRANSLATION_DOMAIN=\"plasma_runner_bookmarksrunner\")
0004 
0005 find_package(Qt6 CONFIG REQUIRED COMPONENTS Sql)
0006 
0007 add_library(krunner_bookmarks_common STATIC)
0008 set_property(TARGET krunner_bookmarks_common PROPERTY POSITION_INDEPENDENT_CODE ON)
0009 
0010 ecm_qt_declare_logging_category(krunner_bookmarks_common
0011     HEADER bookmarks_debug.h
0012     IDENTIFIER RUNNER_BOOKMARKS
0013     CATEGORY_NAME org.kde.plasma.runner.bookmarks
0014     DEFAULT_SEVERITY Warning
0015     DESCRIPTION "krunner bookmarks"
0016     EXPORT PLASMAWORKSPACE
0017 )
0018 
0019 target_sources(krunner_bookmarks_common PRIVATE
0020     bookmarkmatch.cpp
0021     faviconfromblob.cpp
0022     favicon.cpp
0023     fetchsqlite.cpp
0024     browsers/chromefindprofile.cpp
0025     browsers/chrome.cpp
0026     browsers/firefox.cpp
0027     browsers/konqueror.cpp
0028     browsers/opera.cpp
0029     browsers/falkon.cpp
0030 )
0031 target_link_libraries(krunner_bookmarks_common
0032     Qt::Sql
0033     KF6::KIOCore
0034     KF6::KIOGui
0035     KF6::I18n
0036     KF6::Runner
0037     KF6::Bookmarks
0038 )
0039 
0040 kcoreaddons_add_plugin(krunner_bookmarksrunner SOURCES bookmarksrunner.cpp browserfactory.cpp INSTALL_NAMESPACE "kf6/krunner")
0041 target_link_libraries(krunner_bookmarksrunner
0042     krunner_bookmarks_common
0043     PW::KWorkspace
0044 )
0045 
0046 # Currently tests include only chrome, so no need to get include them if json is not found
0047 if(BUILD_TESTING)
0048    add_subdirectory(autotests)
0049 endif()