You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

66 lines
1.7 KiB

########### next target ###############
#set(EXTERNAL_LIBS KIOCore Qt::Script KF5::Plasma Qt::Sql)
add_definitions(-DTRANSLATION_DOMAIN=\"plasma_runner_bookmarksrunner\")
find_package(Qt5 CONFIG REQUIRED COMPONENTS Sql)
set(EXTERNAL_LIBS
Qt::Sql
KF5::KIOCore
KF5::I18n
KF5::Runner
KF5::Bookmarks
)
set(krunner_bookmarks_common_SRCS
bookmarkmatch.cpp
faviconfromblob.cpp
favicon.cpp
fetchsqlite.cpp
)
ecm_qt_declare_logging_category(krunner_bookmarks_common_SRCS
HEADER bookmarks_debug.h
IDENTIFIER RUNNER_BOOKMARKS
CATEGORY_NAME org.kde.plasma.runner.bookmarks
DEFAULT_SEVERITY Warning
)
set(krunner_bookmarksrunner_SRCS
${krunner_bookmarks_common_SRCS}
bookmarksrunner.cpp
browserfactory.cpp
browsers/chromefindprofile.cpp
browsers/chrome.cpp
browsers/firefox.cpp
browsers/kdebrowser.cpp
browsers/opera.cpp
browsers/falkon.cpp
)
add_library(krunner_bookmarksrunner MODULE ${krunner_bookmarksrunner_SRCS})
kcoreaddons_desktop_to_json(krunner_bookmarksrunner plasma-runner-bookmarks.desktop )
target_link_libraries(krunner_bookmarksrunner ${EXTERNAL_LIBS})
set(krunner_bookmarks_test_SRCS
${krunner_bookmarks_common_SRCS}
browsers/chromefindprofile.cpp
browsers/chrome.cpp
)
add_library(krunner_bookmarks_test STATIC ${krunner_bookmarks_test_SRCS})
target_link_libraries(krunner_bookmarks_test
Qt::Sql
KF5::KIOCore
KF5::Runner
)
install(TARGETS krunner_bookmarksrunner DESTINATION "${KDE_INSTALL_PLUGINDIR}/kf5/krunner")
# Currently tests include only chrome, so no need to get include them if json is not found
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()