Warning, /frameworks/kconfigwidgets/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 
0002 find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Test)
0003 
0004 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0005 
0006 include(ECMAddTests)
0007 
0008 ecm_add_test(kstandardactiontest.cpp LINK_LIBRARIES Qt6::Test KF6::ConfigWidgets)
0009 
0010 set(kconfigdialog_unittest_SRCS kconfigdialog_unittest.cpp)
0011 kconfig_add_kcfg_files(kconfigdialog_unittest_SRCS GENERATE_MOC signaltest.kcfgc)
0012 ecm_add_test(${kconfigdialog_unittest_SRCS} TEST_NAME "kconfigdialog_unittest" LINK_LIBRARIES Qt6::Test KF6::ConfigWidgets)
0013 
0014 set(lang_entries
0015   ca
0016   de
0017   en_US
0018   es # must not have file!
0019   fr
0020   pt
0021 )
0022 
0023 # scripty would mangle all *.desktop files, since that'd have potential of
0024 # breaking the test we'll need to bypass scripty by not having our files called
0025 # .desktop!
0026 # Do note that we pop these into CMAKE_LIBRARY_OUTPUT_DIRECTORY so QFINDTESTDATA
0027 # is able to find the fixtures in the bin dir as KDECMakeSettings sets a special
0028 # output dir.
0029 foreach(lang ${lang_entries})
0030     set(src_dir "${CMAKE_CURRENT_SOURCE_DIR}/kf6_entry_data.cmake/locale/${lang}")
0031     set(src_file "${src_dir}/kf6_entry.cmake")
0032     set(bin_dir "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/kf6_entry_data/locale/${lang}")
0033     set(bin_file "${bin_dir}/kf6_entry.desktop")
0034     file(MAKE_DIRECTORY ${bin_dir})
0035     if(EXISTS ${src_file}) # not all languages have entries
0036         configure_file(${src_file} ${bin_file} COPYONLY)
0037     endif()
0038 endforeach()
0039 
0040 ecm_add_test(klanguagenametest.cpp LINK_LIBRARIES Qt6::Test KF6::ConfigWidgets)
0041 ecm_add_test(kcmdbartest.cpp LINK_LIBRARIES Qt6::Test KF6::ConfigWidgets)
0042 ecm_add_test(khamburgermenutest.cpp LINK_LIBRARIES Qt6::Test KF6::ConfigWidgets)
0043 
0044 ecm_add_test(krecentfilesactiontest.cpp TEST_NAME "krecentfilesaction_test" LINK_LIBRARIES Qt6::Test KF6::ConfigWidgets)
0045 
0046 ecm_add_test(kopenactiontest.cpp TEST_NAME "kopenaction_test" LINK_LIBRARIES Qt6::Test KF6::ConfigWidgets)