Warning, /utilities/print-manager/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 # KDE Application Version, managed by release script
0004 set (RELEASE_SERVICE_VERSION_MAJOR "22")
0005 set (RELEASE_SERVICE_VERSION_MINOR "11")
0006 set (RELEASE_SERVICE_VERSION_MICRO "70")
0007 set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
0008 
0009 project(print-manager VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 set(QT_MIN_VERSION "5.15.2")
0012 set(KF5_MIN_VERSION "5.92.0")
0013 
0014 
0015 
0016 ################# set KDE specific information #################
0017 
0018 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0019 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
0020 
0021 include(KDEInstallDirs)
0022 include(KDECMakeSettings)
0023 include(KDECompilerSettings NO_POLICY_SCOPE)
0024 
0025 include(ECMOptionalAddSubdirectory)
0026 include(FeatureSummary)
0027 
0028 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0029     Core
0030     DBus
0031     Network
0032     Widgets
0033     Qml
0034     Quick
0035 )
0036 if (QT_MAJOR_VERSION STREQUAL "6")
0037     find_package(Qt6Core5Compat)
0038 endif()
0039 
0040 find_package(Cups "1.5" REQUIRED)
0041 
0042 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED Config ConfigWidgets CoreAddons DBusAddons IconThemes I18n KCMUtils KIO
0043              Notifications Plasma WidgetsAddons WindowSystem)
0044 
0045 find_package(CupsSmb)
0046 set_package_properties(CupsSmb PROPERTIES
0047     TYPE RUNTIME
0048     DESCRIPTION "SMB backend for CUPS (aka smbspool)"
0049     PURPOSE "Required for CUPS to be able to print to printers shared over SMB"
0050     URL "https://samba.org"
0051 )
0052 
0053 add_definitions(
0054     -DQT_DISABLE_DEPRECATED_BEFORE=0x050900
0055     -DQT_USE_FAST_OPERATOR_PLUS
0056     -DQT_NO_URL_CAST_FROM_STRING
0057     -DQT_NO_CAST_FROM_BYTEARRAY
0058     -DQT_NO_CAST_FROM_ASCII
0059 )
0060 
0061 remove_definitions(-DQT_NO_KEYWORDS)
0062 
0063 # Generate config.h
0064 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
0065                ${CMAKE_CURRENT_BINARY_DIR}/config.h)
0066 
0067 
0068 include_directories(${CMAKE_BINARY_DIR}) # config.h
0069 
0070 install(FILES org.kde.print-manager.metainfo.xml DESTINATION "${KDE_INSTALL_METAINFODIR}")
0071 
0072 add_definitions(-DTRANSLATION_DOMAIN="print-manager")
0073 
0074 add_subdirectory(libkcups)
0075 add_subdirectory(configure-printer)
0076 add_subdirectory(add-printer)
0077 add_subdirectory(printer-manager-kcm)
0078 add_subdirectory(printqueue)
0079 add_subdirectory(print-manager-kded)
0080 add_subdirectory(plasmoid)
0081 add_subdirectory(declarative-plugins)
0082 
0083 ki18n_install(po)
0084 
0085 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)