Warning, /plasma/flatpak-kcm/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-License-Identifier: BSD-2-Clause 0002 # SPDX-FileCopyrightText: 2023 Harald Sitter <sitter@kde.org> 0003 0004 if(NOT BUILD_TESTING) 0005 return() 0006 endif() 0007 0008 find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Test) 0009 include(ECMAddTests) 0010 remove_definitions(-DQT_NO_CAST_FROM_ASCII) 0011 0012 add_custom_target(generate_overrides 0013 COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/fixtures/overrides.in ${CMAKE_CURRENT_BINARY_DIR}/fixtures/overrides 0014 ) 0015 0016 ecm_add_test(flatpakpermissiontest.cpp 0017 TEST_NAME flatpakpermissiontest 0018 LINK_LIBRARIES Qt6::Test kcm_flatpak_static) 0019 set_tests_properties(flatpakpermissiontest PROPERTIES ENVIRONMENT "LANGUAGE=fr") 0020 add_dependencies(flatpakpermissiontest generate_overrides) 0021 0022 ecm_add_test(FlatpakSimpleEntryTest.cpp 0023 TEST_NAME FlatpakSimpleEntryTest 0024 LINK_LIBRARIES Qt6::Test kcm_flatpak_static) 0025 0026 ecm_add_test(flatpakfilesystemstest.cpp 0027 TEST_NAME flatpakfilesystemstest 0028 LINK_LIBRARIES Qt6::Test kcm_flatpak_static)