Commit 714e13e1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

convert more plugin to macro.

parent d445185c
......@@ -6,7 +6,8 @@ set(webengineviewer_webengineurlinterceptor_adblock_SRCS
ecm_qt_declare_logging_category(webengineviewer_webengineurlinterceptor_adblock_SRCS HEADER adblockinterceptor_debug.h IDENTIFIER ADBLOCKINTERCEPTOR_LOG CATEGORY_NAME log_adblockinterceptor)
add_library(webengineviewer_adblockplugin MODULE ${webengineviewer_webengineurlinterceptor_adblock_SRCS})
kcoreaddons_add_plugin(webengineviewer_adblockplugin JSON messageviewer_adblockurlinterceptor.json SOURCES
${webengineviewer_webengineurlinterceptor_adblock_SRCS} INSTALL_NAMESPACE webengineviewer)
target_link_libraries(webengineviewer_adblockplugin
KF5::MessageViewer
......@@ -20,8 +21,6 @@ target_link_libraries(webengineviewer_adblockplugin
KF5::WebEngineViewer
)
install(TARGETS webengineviewer_adblockplugin DESTINATION ${PLUGIN_INSTALL_DIR}/webengineviewer)
if(BUILD_TESTING)
add_subdirectory(tests)
add_subdirectory(autotests)
......
......@@ -10,7 +10,8 @@ kconfig_add_kcfg_files(webengineviewer_webengineurlinterceptor_donottrack_SRCS
)
add_library(webengineviewer_donottrackplugin MODULE ${webengineviewer_webengineurlinterceptor_donottrack_SRCS})
kcoreaddons_add_plugin(webengineviewer_donottrackplugin JSON messageviewer_donottrackurlinterceptor.json SOURCES
${webengineviewer_webengineurlinterceptor_donottrack_SRCS} INSTALL_NAMESPACE webengineviewer)
target_link_libraries(webengineviewer_donottrackplugin
Qt5::WebEngine
......@@ -19,7 +20,6 @@ target_link_libraries(webengineviewer_donottrackplugin
KF5::ConfigGui
KF5::CoreAddons
)
install(TARGETS webengineviewer_donottrackplugin DESTINATION ${PLUGIN_INSTALL_DIR}/webengineviewer)
add_subdirectory(autotests)
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment