Warning, /frameworks/kio/src/kioworkers/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 KF6::ConfigCore
0026 KF6::I18n
0027 Qt6::DBus
0028 KF6::KIOCore
0029 KF6::Solid
0030 Qt6::Test
0031 Qt6::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 Qt6::Core Qt6::DBus)