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

0001 include(ECMMarkAsTest)
0002 
0003 find_package(KF5XmlGui ${KF_DEP_VERSION} REQUIRED)
0004 
0005 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0006 remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
0007 
0008 macro(KIOWIDGETS_EXECUTABLE_TESTS)
0009   foreach(_testname ${ARGN})
0010     add_executable(${_testname} ${_testname}.cpp)
0011     target_link_libraries(${_testname}
0012        KF5::KIOCore
0013        KF5::KIOGui
0014        KF5::KIOWidgets
0015        KF5::KIOFileWidgets
0016        Qt${QT_MAJOR_VERSION}::Test
0017        KF5::WidgetsAddons
0018        KF5::IconThemes)
0019     ecm_mark_as_test(${_testname})
0020   endforeach()
0021 endmacro(KIOWIDGETS_EXECUTABLE_TESTS)
0022 
0023 if(NOT EXCLUDE_DEPRECATED_BEFORE_AND_AT STREQUAL "CURRENT" AND
0024    EXCLUDE_DEPRECATED_BEFORE_AND_AT VERSION_LESS 5.71.0)
0025     set(runapplication_EXE runapplication)
0026 endif()
0027 
0028 if (NOT ANDROID)
0029 KIOWIDGETS_EXECUTABLE_TESTS(
0030     getalltest
0031     kdirlistertest_gui
0032     kdirmodeltest_gui
0033     kemailclientlauncherjobtest_gui
0034     kencodingfiledialogtest_gui
0035     kfilecustomdialogtest_gui
0036     kfilecustomdialogtest_gui_select_dir_mode
0037     kfilewidgettest_gui
0038     kfilewidgettest_saving_gui
0039     kionetrctest
0040     kioworkertest
0041     kmountpoint_debug
0042     kopenwithtest
0043     kpropertiesdialogtest
0044     kprotocolinfo_dumper
0045     kruntest
0046     ksycocaupdatetest
0047     kterminallauncherjobtest_gui
0048     kurlnavigatortest_gui
0049     kurlrequestertest_gui
0050     listjobtest
0051     openfilemanagerwindowtest
0052     previewtest
0053     ${runapplication_EXE}
0054 )
0055 
0056 add_subdirectory(messageboxworker)
0057 endif()