From 41697f9a1c61bfa85135e9da56d8867409b613b2 Mon Sep 17 00:00:00 2001 From: Fushan Wen Date: Mon, 11 Apr 2022 05:44:00 +0800 Subject: [PATCH] wallpapers/image: Add static library for autotests --- wallpapers/image/plugin/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/wallpapers/image/plugin/CMakeLists.txt b/wallpapers/image/plugin/CMakeLists.txt index b0c048870..08b2e2c8e 100644 --- a/wallpapers/image/plugin/CMakeLists.txt +++ b/wallpapers/image/plugin/CMakeLists.txt @@ -1,6 +1,5 @@ set(image_SRCS imagebackend.cpp - imageplugin.cpp backgroundlistmodel.cpp slidemodel.cpp slidefiltermodel.cpp @@ -12,9 +11,9 @@ ecm_qt_declare_logging_category(image_SRCS HEADER debug.h CATEGORY_NAME kde.wallpapers.image DEFAULT_SEVERITY Info) -add_library(plasma_wallpaper_imageplugin SHARED ${image_SRCS}) +add_library(plasma_wallpaper_imageplugin_static STATIC ${image_SRCS}) -target_link_libraries(plasma_wallpaper_imageplugin +target_link_libraries(plasma_wallpaper_imageplugin_static Qt::Core Qt::Quick Qt::Qml @@ -28,6 +27,11 @@ target_link_libraries(plasma_wallpaper_imageplugin KF5::Notifications ) +add_library(plasma_wallpaper_imageplugin SHARED imageplugin.cpp) +target_link_libraries(plasma_wallpaper_imageplugin + plasma_wallpaper_imageplugin_static +) + if(BUILD_TESTING) add_subdirectory(autotests) endif()