Warning, /plasma-mobile/qrca/src/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2019 Jonah BrĂ¼chert <jbb@kaidan.im>
0002 # SPDX-FileCopyrightText: 2020 Nicolas Fella <nicolas.fella@gmx.de>
0003 #
0004 # SPDX-License-Identifier: BSD-2-Clause
0005 
0006 if (TARGET KF5::NetworkManagerQt)
0007     set(HAVE_NETWORKMANAGER TRUE)
0008 endif()
0009 configure_file(config-qrca.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-qrca.h)
0010 
0011 set(qrca_SRCS
0012     main.cpp
0013     Qrca.cpp
0014     QrCodeContent.cpp
0015     mecardparser.cpp
0016     notificationmanager.cpp
0017     clipboard.cpp
0018     resources.qrc
0019 )
0020 
0021 add_executable(qrca ${qrca_SRCS})
0022 
0023 target_link_libraries(qrca Qt::Core Qt::Qml Qt::Quick Qt::Svg Qt::Multimedia Qt::Concurrent KF5::I18n KF5::Contacts KF5::CoreAddons KF5::Notifications KF5::PrisonScanner)
0024 
0025 if (TARGET KF5::NetworkManagerQt)
0026     target_link_libraries(qrca KF5::NetworkManagerQt)
0027 endif()
0028 
0029 target_compile_definitions(qrca PRIVATE -DQT_NO_CAST_FROM_ASCII)
0030 
0031 if(ANDROID)
0032     target_link_libraries(qrca Qt::Svg KF5::Kirigami2)
0033 
0034     kirigami_package_breeze_icons(ICONS
0035         arrow-right
0036         camera-photo-symbolic
0037         camera-video-symbolic
0038         document-encrypt
0039         document-new-symbolic
0040         document-save
0041         document-share
0042         edit-clear
0043         edit-copy-symbolic
0044         help-feedback
0045         internet-services
0046         itinerary
0047         network-wireless
0048     )
0049 else()
0050     target_link_libraries(qrca KF5::KIOGui KF5::Service)
0051 endif()
0052 
0053 install(TARGETS qrca ${KF_INSTALL_TARGETS_DEFAULT_ARGS})