Warning, /network/kget/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include_directories( 0002 ../ 0003 ) 0004 0005 #===========KGet=========== 0006 if(BUILD_TESTING) 0007 add_definitions(-DDO_KGET_TEST) 0008 add_executable(kget_test_transfers) 0009 set(kget_test_transfers_dbus_SRCS) 0010 qt_add_dbus_interface(kget_test_transfers_dbus_SRCS ../dbus/org.kde.kget.main.xml kget_interface) 0011 qt_add_dbus_interface(kget_test_transfers_dbus_SRCS ../dbus/org.kde.kget.transfer.xml transfer_interface) 0012 qt_add_dbus_interface(kget_test_transfers_dbus_SRCS ../dbus/org.kde.kget.verifier.xml verifier_interface) 0013 0014 target_sources(kget_test_transfers PRIVATE 0015 ${kget_test_transfers_dbus_SRCS} 0016 testkget.cpp 0017 testtransfers.cpp 0018 ../kget_debug.cpp 0019 ) 0020 0021 # TODO enable it in ctest once it's fixed to not popup a "first run" messagebox on first start. 0022 # This probably needs a --testmode command-line argument (and QStandardPaths::setTestModeEnabled(true) on both sides) 0023 #ecm_mark_as_test(kget_test_transfers) 0024 target_link_libraries(kget_test_transfers Qt::Test KF6::KIOCore kgetcore) 0025 0026 0027 #===========Verifier=========== 0028 ecm_add_test( 0029 verifiertest.cpp 0030 LINK_LIBRARIES 0031 Qt::Test 0032 kgetcore 0033 TEST_NAME verifiertest) 0034 0035 0036 #===========Scheduler=========== 0037 ecm_add_test( 0038 schedulertest.cpp 0039 LINK_LIBRARIES 0040 Qt::Test 0041 Qt::Gui 0042 kgetcore 0043 TEST_NAME schedulertest) 0044 0045 #===========Metalinker=========== 0046 ecm_add_test( 0047 metalinktest.cpp 0048 ../ui/metalinkcreator/metalinker.cpp 0049 ../kget_debug.cpp 0050 LINK_LIBRARIES 0051 Qt::Xml 0052 KF6::I18n 0053 KF6::KIOCore 0054 Qt::Test 0055 TEST_NAME metalinktest 0056 ) 0057 0058 #===========FileDeleter=========== 0059 ecm_add_test( 0060 filedeletertest.cpp 0061 ../core/filedeleter.cpp 0062 LINK_LIBRARIES 0063 KF6::KIOCore 0064 Qt::Test 0065 TEST_NAME filedeletertest 0066 ) 0067 0068 endif()