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

0001 set(addprinter_SRCS
0002     main.cpp
0003     AddPrinter.cpp
0004     DevicesModel.cpp
0005     GenericPage.cpp
0006     PageDestinations.cpp
0007     ChooseLpd.cpp
0008     ChooseSamba.cpp
0009     ChooseSerial.cpp
0010     ChooseSocket.cpp
0011     ChooseUri.cpp
0012     PageChoosePrinters.cpp
0013     PageChoosePPD.cpp
0014     PageAddPrinter.cpp
0015     AddPrinterAssistant.cpp
0016 )
0017 
0018 ki18n_wrap_ui(addprinter_SRCS
0019     PageDestinations.ui
0020     ChooseLpd.ui
0021     ChooseSamba.ui
0022     ChooseSerial.ui
0023     ChooseSocket.ui
0024     ChooseUri.ui
0025     PageChoosePrinters.ui
0026     PageChoosePPD.ui
0027     PageAddPrinter.ui
0028 )
0029 
0030 add_executable(kde-add-printer
0031     ${addprinter_SRCS}
0032 )
0033 
0034 target_link_libraries(kde-add-printer
0035     Qt::Core
0036     Qt::Widgets
0037     Qt::Network
0038     KF5::CoreAddons
0039     KF5::I18n
0040     KF5::IconThemes
0041     KF5::KIOCore
0042     KF5::KIOWidgets
0043     KF5::ConfigCore
0044     kcupslib
0045 )
0046 if (QT_MAJOR_VERSION STREQUAL "6")
0047     target_link_libraries(kde-add-printer Qt6::Core5Compat)
0048 endif()
0049 
0050 install(TARGETS kde-add-printer DESTINATION ${KDE_INSTALL_BINDIR})
0051 install(PROGRAMS org.kde.kde-add-printer.desktop DESTINATION ${KDE_INSTALL_APPDIR})