Warning, /frameworks/kwallet/src/runtime/kwalletd/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) 0002 0003 find_package(Qt6Test REQUIRED) 0004 find_package(KF6Config ${KF6_DEP_VERSION} REQUIRED) 0005 set(CMAKE_INCLUDE_CURRENT_DIR ON) 0006 set(CMAKE_AUTOMOC ON) 0007 0008 include(ECMAddTests) 0009 0010 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..) 0011 include_directories(${CMAKE_CURRENT_BINARY_DIR}/..) 0012 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../backend) 0013 include_directories(${CMAKE_CURRENT_BINARY_DIR}/../backend) 0014 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../api/KWallet) 0015 include_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../api/KWallet) 0016 0017 add_definitions(-DFDO_ENABLE_DUMMY_MESSAGE_CONNECTION) 0018 remove_definitions(-DQT_NO_CAST_FROM_ASCII) 0019 0020 if (NOT EXCLUDE_DEPRECATED_BEFORE_AND_AT STREQUAL "CURRENT" AND 0021 EXCLUDE_DEPRECATED_BEFORE_AND_AT VERSION_LESS 5.72.0) 0022 set(kwallet_xml ${CMAKE_SOURCE_DIR}/src/api/KWallet/org.kde.KWallet.xml) 0023 else() 0024 # copy of org.kde.KWallet.xml, but with all deprecated API removed 0025 set(kwallet_xml ${CMAKE_SOURCE_DIR}/src/api/KWallet/org.kde.KWallet.nodeprecated.xml) 0026 endif() 0027 set(fdo_service_xml ${CMAKE_SOURCE_DIR}/src/api/KWallet/org.freedesktop.Secrets.Service.xml) 0028 set(fdo_session_xml ${CMAKE_SOURCE_DIR}/src/api/KWallet/org.freedesktop.Secrets.Session.xml) 0029 set(fdo_collection_xml ${CMAKE_SOURCE_DIR}/src/api/KWallet/org.freedesktop.Secrets.Collection.xml) 0030 set(fdo_item_xml ${CMAKE_SOURCE_DIR}/src/api/KWallet/org.freedesktop.Secrets.Item.xml) 0031 set(fdo_prompt_xml ${CMAKE_SOURCE_DIR}/src/api/KWallet/org.freedesktop.Secrets.Prompt.xml) 0032 0033 set(TEST_SRC 0034 fdo_secrets_test.cpp 0035 ../kwalletfreedesktopservice.cpp 0036 ../kwalletfreedesktopitem.cpp 0037 ../kwalletfreedesktopcollection.cpp 0038 ../kwalletfreedesktopsession.cpp 0039 ../kwalletfreedesktopprompt.cpp 0040 ../kwalletfreedesktopattributes.cpp 0041 ) 0042 0043 qt_add_dbus_adaptor( TEST_SRC ${kwallet_xml} ../kwalletd.h KWalletD kwalletadaptor KWalletAdaptor) 0044 qt_add_dbus_adaptor( TEST_SRC ${fdo_service_xml} ../kwalletfreedesktopservice.h KWalletFreedesktopService 0045 kwalletfreedesktopserviceadaptor KWalletFreedesktopServiceAdaptor) 0046 qt_add_dbus_adaptor( TEST_SRC ${fdo_session_xml} ../kwalletfreedesktopsession.h KWalletFreedesktopSession 0047 kwalletfreedesktopsessionadaptor KWalletFreedesktopSessionAdaptor) 0048 qt_add_dbus_adaptor( TEST_SRC ${fdo_collection_xml} ../kwalletfreedesktopcollection.h KWalletFreedesktopCollection 0049 kwalletfreedesktopcollectionadaptor KWalletFreedesktopCollectionAdaptor) 0050 qt_add_dbus_adaptor( TEST_SRC ${fdo_item_xml} ../kwalletfreedesktopitem.h KWalletFreedesktopItem 0051 kwalletfreedesktopitemadaptor KWalletFreedesktopItemAdaptor) 0052 qt_add_dbus_adaptor( TEST_SRC ${fdo_prompt_xml} ../kwalletfreedesktopprompt.h KWalletFreedesktopPrompt 0053 kwalletfreedesktoppromptadaptor KWalletFreedesktopPromptAdaptor) 0054 0055 ecm_add_test( 0056 ${TEST_SRC} 0057 ../kwalletfreedesktopservice.h 0058 ../kwalletfreedesktopcollection.h 0059 ../kwalletfreedesktopitem.h 0060 ../kwalletfreedesktopsession.h 0061 ../kwalletfreedesktopprompt.h 0062 ../kwalletd.h 0063 ../ktimeout.h 0064 kwalletfreedesktopserviceadaptor.cpp 0065 kwalletfreedesktopcollectionadaptor.cpp 0066 kwalletfreedesktopitemadaptor.cpp 0067 kwalletfreedesktopsessionadaptor.cpp 0068 kwalletfreedesktoppromptadaptor.cpp 0069 TEST_NAME fdo_secrets_test 0070 LINK_LIBRARIES 0071 KF6Wallet 0072 KF6WalletBackend 0073 Qt6::Widgets 0074 Qt6::Test 0075 KF6::DBusAddons 0076 KF6::ConfigCore 0077 ${Qca_LIBRARY} 0078 )