Warning, /graphics/digikam/core/dplugins/generic/tools/wallpaper/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 #
0002 # SPDX-FileCopyrightText: 2019      by Igor Antropov <antropovi at yahoo dot com>
0003 # SPDX-FileCopyrightText: 2019-2024 by Gilles Caulier, <caulier dot gilles at gmail dot com>
0004 #
0005 # SPDX-License-Identifier: BSD-3-Clause
0006 #
0007 
0008 APPLY_COMMON_POLICIES()
0009 
0010 include(MacroDPlugins)
0011 
0012 include_directories(${CMAKE_CURRENT_SOURCE_DIR}
0013 
0014                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Widgets,INTERFACE_INCLUDE_DIRECTORIES>
0015                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Core,INTERFACE_INCLUDE_DIRECTORIES>
0016 
0017                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::ConfigCore,INTERFACE_INCLUDE_DIRECTORIES>
0018                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::I18n,INTERFACE_INCLUDE_DIRECTORIES>
0019 )
0020 
0021 set(wallpaperplugin_SRCS
0022     ${CMAKE_CURRENT_SOURCE_DIR}/wallpaperplugin.cpp
0023     ${CMAKE_CURRENT_SOURCE_DIR}/wallpaperplugindlg.cpp
0024 )
0025 
0026 if(WIN32)
0027 
0028     set(wallpaperplugin_SRCS ${wallpaperplugin_SRCS}
0029                              ${CMAKE_CURRENT_SOURCE_DIR}/wallpaperplugin_windows.cpp)
0030 
0031     set(compile_wallpaperplugin ON)
0032 
0033 elseif(APPLE)
0034 
0035     set(wallpaperplugin_SRCS ${wallpaperplugin_SRCS}
0036                              ${CMAKE_CURRENT_SOURCE_DIR}/wallpaperplugin_macos.cpp)
0037 
0038     set(compile_wallpaperplugin ON)
0039 
0040 elseif(ENABLE_DBUS)
0041 
0042     include_directories($<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::DBus,INTERFACE_INCLUDE_DIRECTORIES>)
0043 
0044     set(wallpaperplugin_SRCS ${wallpaperplugin_SRCS}
0045                              ${CMAKE_CURRENT_SOURCE_DIR}/wallpaperplugin_dbus.cpp)
0046 
0047     set(compile_wallpaperplugin ON)
0048 
0049 endif()
0050 
0051 if(compile_wallpaperplugin)
0052 
0053     message(STATUS "WallPaper plugin will be compiled......... YES")
0054 
0055     DIGIKAM_ADD_GENERIC_PLUGIN(NAME    Wallpaper
0056                                SOURCES ${wallpaperplugin_SRCS}
0057     )
0058 
0059 else()
0060 
0061     message(STATUS "WallPaper plugin will be compiled......... NO")
0062 
0063 endif()