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

0001 include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
0002 
0003 ########### next target ###############
0004 
0005 ecm_qt_declare_logging_category(kio_trash_PART_test_DEBUG_SRCS
0006     HEADER kiotrashdebug.h
0007     IDENTIFIER KIO_TRASH
0008     CATEGORY_NAME kf.kio.workers.trash
0009 )
0010 
0011 set(testtrash_SRCS
0012     testtrash.cpp
0013     ${CMAKE_CURRENT_SOURCE_DIR}/../trashimpl.cpp
0014     ${CMAKE_CURRENT_SOURCE_DIR}/../trashsizecache.cpp
0015     ${CMAKE_CURRENT_SOURCE_DIR}/../discspaceutil.cpp
0016     ${CMAKE_CURRENT_SOURCE_DIR}/../kinterprocesslock.cpp
0017     ${kio_trash_PART_test_DEBUG_SRCS}
0018 )
0019 
0020 include(ECMAddTests)
0021 
0022 ecm_add_test(${testtrash_SRCS}
0023     TEST_NAME testtrash
0024     LINK_LIBRARIES
0025         KF5::ConfigCore
0026         KF5::I18n
0027         Qt${QT_MAJOR_VERSION}::DBus
0028         KF5::KIOCore
0029         KF5::Solid
0030         Qt${QT_MAJOR_VERSION}::Test
0031         Qt${QT_MAJOR_VERSION}::Network
0032 )
0033 
0034 if(APPLE)
0035     target_link_libraries(testtrash "-framework DiskArbitration -framework CoreFoundation")
0036 endif(APPLE)
0037 
0038 # other tests like dropjob and fileundomanager use the trash in ~/.qttest, which this test cleans up
0039 set_tests_properties(testtrash PROPERTIES RUN_SERIAL TRUE)
0040 
0041 ### next target ###
0042 
0043 add_executable(lockingtest lockingtest.cpp ../kinterprocesslock.cpp)
0044 ecm_mark_nongui_executable(lockingtest)
0045 
0046 target_link_libraries(lockingtest Qt${QT_MAJOR_VERSION}::Core Qt${QT_MAJOR_VERSION}::DBus)