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

0001 #
0002 # SPDX-FileCopyrightText: 2010-2024, Gilles Caulier, <caulier dot gilles at gmail dot com>
0003 #
0004 # SPDX-License-Identifier: BSD-3-Clause
0005 #
0006 
0007 APPLY_COMMON_POLICIES()
0008 
0009 include(MacroDPlugins)
0010 
0011 include_directories($<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Widgets,INTERFACE_INCLUDE_DIRECTORIES>
0012                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Concurrent,INTERFACE_INCLUDE_DIRECTORIES>
0013                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Core,INTERFACE_INCLUDE_DIRECTORIES>
0014                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::PrintSupport,INTERFACE_INCLUDE_DIRECTORIES>
0015 
0016                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::ConfigCore,INTERFACE_INCLUDE_DIRECTORIES>
0017                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::I18n,INTERFACE_INCLUDE_DIRECTORIES>
0018 
0019                     ${CMAKE_CURRENT_SOURCE_DIR}/print
0020                     ${CMAKE_CURRENT_SOURCE_DIR}/wizard
0021 )
0022 
0023 if(KF${QT_VERSION_MAJOR}CalendarCore_FOUND)
0024     include_directories($<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::CalendarCore,INTERFACE_INCLUDE_DIRECTORIES>)
0025 endif()
0026 
0027 set(calendarplugin_SRCS
0028     ${CMAKE_CURRENT_SOURCE_DIR}/print/calsettings.cpp
0029     ${CMAKE_CURRENT_SOURCE_DIR}/print/calpainter.cpp
0030     ${CMAKE_CURRENT_SOURCE_DIR}/print/calprinter.cpp
0031     ${CMAKE_CURRENT_SOURCE_DIR}/print/calsystem.cpp
0032     ${CMAKE_CURRENT_SOURCE_DIR}/wizard/calintropage.cpp
0033     ${CMAKE_CURRENT_SOURCE_DIR}/wizard/calmonthwidget.cpp
0034     ${CMAKE_CURRENT_SOURCE_DIR}/wizard/caltemplate.cpp
0035     ${CMAKE_CURRENT_SOURCE_DIR}/wizard/calwidget.cpp
0036     ${CMAKE_CURRENT_SOURCE_DIR}/wizard/calwizard.cpp
0037     ${CMAKE_CURRENT_SOURCE_DIR}/calendarplugin.cpp
0038 )
0039 
0040 ki18n_wrap_ui(calendarplugin_SRCS
0041               ${CMAKE_CURRENT_SOURCE_DIR}/ui/caltemplate.ui
0042               ${CMAKE_CURRENT_SOURCE_DIR}/ui/calevents.ui
0043               ${CMAKE_CURRENT_SOURCE_DIR}/ui/calprogress.ui
0044 )
0045 
0046 if(KF${QT_VERSION_MAJOR}CalendarCore_FOUND)
0047 
0048     DIGIKAM_ADD_GENERIC_PLUGIN(NAME    Calendar
0049                                SOURCES ${calendarplugin_SRCS}
0050                                DEPENDS KF${QT_VERSION_MAJOR}::CalendarCore Qt${QT_VERSION_MAJOR}::PrintSupport
0051     )
0052 
0053 else()
0054 
0055     DIGIKAM_ADD_GENERIC_PLUGIN(NAME    Calendar
0056                                SOURCES ${calendarplugin_SRCS}
0057                                DEPENDS Qt${QT_VERSION_MAJOR}::PrintSupport
0058     )
0059 
0060 endif()