Warning, /frameworks/kdelibs4support/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 
0002 include(ECMAddTests)
0003 
0004 find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Concurrent)
0005 
0006 include_directories("${CMAKE_CURRENT_BINARY_DIR}/../../..")
0007 
0008 macro(KDELIBS4SUPPORT_EXECUTABLE_TESTS)
0009     foreach(_testname ${ARGN})
0010         add_executable(${_testname} ${_testname}.cpp)
0011         target_link_libraries(${_testname} KF5::KDELibs4Support Qt5::Core Qt5::Widgets KF5::ConfigCore)
0012         ecm_mark_as_test(${_testname})
0013     endforeach()
0014 endmacro()
0015 
0016 
0017 ecm_add_tests( globalcleanuptest.cpp
0018         kaccelgentest.cpp
0019         kcalendartest.cpp
0020         kcmdlineargs_unittest.cpp
0021         kdatetimetest.cpp
0022         klocaletimeformattest.cpp
0023         ktimezonestest.cpp
0024         k4timezonewidget_unittest.cpp
0025         kdebugtest.cpp
0026         kbuttongrouptest.cpp
0027         kdialog_unittest.cpp
0028         kfadewidgeteffecttest.cpp
0029         kconfigafterkglobaltest1.cpp
0030         kconfigafterkglobaltest2.cpp
0031         kdebug_unittest.cpp
0032         kdebug_qcoreapptest.cpp
0033         kmd5benchmark.cpp
0034         ktabwidget_unittest.cpp
0035         ktempdirtest.cpp
0036         ktemporaryfiletest.cpp
0037         kuniqueapptest.cpp
0038         kurlmimetest.cpp
0039         klibloadertest.cpp
0040         ksavefiletest.cpp
0041         kconfigcompattest.cpp
0042         kglobalstatictest.cpp
0043         kmimetypetest.cpp
0044         kmimetype_nomimetypes.cpp
0045         kstandarddirstest.cpp
0046         kasciitest.cpp
0047         kglobaltest.cpp
0048         klockfiletest.cpp
0049         kurltest.cpp
0050         kfilemetainfotest.cpp
0051         kglobalsettingstest.cpp
0052         ksharedptrtest.cpp
0053         naturalcomparetest.cpp
0054     LINK_LIBRARIES
0055        KF5::KDELibs4Support
0056        Qt5::DBus
0057        Qt5::Widgets
0058        Qt5::Test
0059        Qt5::Network
0060        Qt5::Concurrent
0061        KF5::CoreAddons
0062        KF5::I18n
0063        KF5::Crash
0064        KF5::KIOCore
0065        KF5::KIOWidgets
0066 )
0067 
0068 
0069 kdelibs4support_executable_tests(
0070   klockfile_testlock         # Helper for klockfiletest
0071   kglobalsettingsclient      # Helper for kglobalsettingstest
0072 )
0073 
0074 ########### module for klibloadertest ###############
0075 
0076 if(NOT KDELIBS4SUPPORT_NO_DEPRECATED)
0077   # this exists to check that code using the kde 3 macros still build,
0078   # even though the module cannot be loaded
0079   set(klibloadertestmodule3_PART_SRCS klibloadertest3_module.cpp )
0080 
0081   add_library(klibloadertestmodule3 MODULE ${klibloadertestmodule3_PART_SRCS})
0082   set_target_properties(klibloadertestmodule3 PROPERTIES PREFIX "") # remove lib prefix - missing from cmake
0083 
0084   target_link_libraries(klibloadertestmodule3 KF5::KDELibs4Support Qt5::Test KF5::I18n KF5::Service KF5::CoreAddons)
0085 
0086   set_target_properties(klibloadertestmodule3 PROPERTIES SKIP_BUILD_RPATH FALSE BUILD_WITH_INSTALL_RPATH FALSE)
0087 endif()
0088 
0089 ########### module for klibloadertest5 ###############
0090 
0091 set(klibloadertestmodule5_PART_SRCS klibloadertest5_module.cpp )
0092 
0093 add_library(klibloadertestmodule5 MODULE ${klibloadertestmodule5_PART_SRCS})
0094 ecm_mark_as_test(klibloadertestmodule5)
0095 set_target_properties(klibloadertestmodule5 PROPERTIES PREFIX "") # remove lib prefix - missing from cmake
0096 
0097 target_link_libraries(klibloadertestmodule5 KF5::KDELibs4Support Qt5::Test KF5::I18n KF5::Service KF5::CoreAddons)
0098 
0099 set_target_properties(klibloadertestmodule5 PROPERTIES SKIP_BUILD_RPATH FALSE BUILD_WITH_INSTALL_RPATH FALSE)
0100 
0101 ########### klocaletest ###############
0102 
0103 # compile into the test since it's not exported
0104 ecm_add_test(klocaletest.cpp ../src/kdecore/kdayperiod.cpp
0105     TEST_NAME "kdelibs4support-klocaletest"
0106     LINK_LIBRARIES Qt5::Test Qt5::DBus KF5::I18n KF5::KDELibs4Support KF5::ConfigCore)
0107 
0108 ########### kdatetimeformattertest ###############
0109 
0110 # compile KDateTimeFormatter and KDayPeriod into the test since it's not exported
0111 ecm_add_test(kdatetimeformattertest.cpp ../src/kdecore/kdatetimeformatter.cpp ../src/kdecore/kdayperiod.cpp
0112     TEST_NAME "kdelibs4support-kdatetimeformattertest" LINK_LIBRARIES Qt5::Test KF5::I18n KF5::KDELibs4Support KF5::ConfigCore)
0113 
0114