Warning, /plasma-mobile/qrca/tests/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 # SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
0004 #
0005 # SPDX-License-Identifier: BSD-2-Clause
0006 
0007 include(ECMAddTests)
0008 
0009 find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} CONFIG REQUIRED Test)
0010 
0011 include_directories(../src ${CMAKE_CURRENT_BINARY_DIR}/../src)
0012 
0013 ecm_add_test(qrcatest.cpp ../src/Qrca.cpp ../src/QrCodeContent.cpp ../src/mecardparser.cpp
0014              TEST_NAME qrcatest
0015              LINK_LIBRARIES Qt::Test Qt::Core Qt::Gui KF5::I18n KF5::Contacts KF5::CoreAddons KF5::PrisonScanner
0016 )
0017 if (NOT ANDROID)
0018     target_link_libraries(qrcatest KF5::KIOGui KF5::Service)
0019 endif()
0020 if (TARGET KF5::NetworkManagerQt)
0021     target_link_libraries(qrcatest KF5::NetworkManagerQt)
0022 endif()
0023 
0024 ecm_add_test(mecardparsertest.cpp ../src/mecardparser.cpp TEST_NAME mecardparsertest LINK_LIBRARIES Qt::Core Qt::Test)