Warning, /utilities/ark/autotests/kerfuffle/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) 0002 0003 set(JSONINTERFACE_SOURCES 0004 jsonarchiveinterface.cpp 0005 jsonparser.cpp 0006 ) 0007 add_library(jsoninterface STATIC ${JSONINTERFACE_SOURCES}) 0008 target_link_libraries(jsoninterface kerfuffle) 0009 0010 ecm_add_tests( 0011 addtoarchivetest.cpp 0012 deletetest.cpp 0013 loadtest.cpp 0014 extracttest.cpp 0015 addtest.cpp 0016 movetest.cpp 0017 copytest.cpp 0018 createdialogtest.cpp 0019 metadatatest.cpp 0020 mimetypetest.cpp 0021 preservemetadatatest.cpp 0022 LINK_LIBRARIES testhelper kerfuffle Qt::Test KF6::ConfigCore KF6::KIOCore 0023 NAME_PREFIX kerfuffle-) 0024 0025 ecm_add_test( 0026 adddialogtest.cpp 0027 LINK_LIBRARIES kerfuffle Qt::Test KF6::KIOFileWidgets 0028 NAME_PREFIX kerfuffle-) 0029 0030 ecm_add_tests( 0031 jobstest.cpp 0032 LINK_LIBRARIES jsoninterface Qt::Test 0033 NAME_PREFIX kerfuffle-) 0034 0035 # metadatatest needs the number of plugins actually installed by an install() command. 0036 list(REMOVE_ITEM INSTALLED_KERFUFFLE_PLUGINS "") 0037 list(LENGTH INSTALLED_KERFUFFLE_PLUGINS INSTALLED_COUNT) 0038 target_compile_definitions(metadatatest PRIVATE -DPLUGINS_COUNT=${INSTALLED_COUNT})