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