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

0001 find_package(Qt${QT_MAJOR_VERSION}Test REQUIRED)
0002 find_package(Qt${QT_MAJOR_VERSION}Widgets REQUIRED)
0003 find_package(KF5Archive ${KF_DEP_VERSION} REQUIRED)
0004 find_package(ZLIB)
0005 set_package_properties(ZLIB PROPERTIES DESCRIPTION "Support for gzip compressed files and data streams"
0006                        URL "https://www.zlib.net"
0007                        TYPE REQUIRED
0008                        PURPOSE "Required for httpfiltertest"
0009                       )
0010 
0011 set(kioworker-http_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../src/kioworkers/http")
0012 include_directories("${CMAKE_CURRENT_BINARY_DIR}/../../src/kioworkers/http" "${kioworker-http_SOURCE_DIR}")
0013 
0014 include(ECMAddTests)
0015 
0016 if (TARGET Qt6::Core5Compat)
0017     set(_qt5_compat_libs Qt6::Core5Compat) # QTextCodec
0018 endif()
0019 
0020 ecm_add_test(httpheadertokenizetest.cpp
0021    NAME_PREFIX "kioworker-"
0022    LINK_LIBRARIES KF5::I18n Qt${QT_MAJOR_VERSION}::Test Qt${QT_MAJOR_VERSION}::Widgets ${_qt5_compat_libs}
0023 )
0024 
0025 ecm_add_test(httpheaderdispositiontest.cpp
0026    NAME_PREFIX "kioworker-"
0027    LINK_LIBRARIES KF5::I18n Qt${QT_MAJOR_VERSION}::Test Qt${QT_MAJOR_VERSION}::Widgets ${_qt5_compat_libs}
0028 )
0029 
0030 ecm_add_test(httpauthenticationtest.cpp
0031    NAME_PREFIX "kioworker-"
0032    LINK_LIBRARIES
0033    Qt${QT_MAJOR_VERSION}::Test
0034    Qt${QT_MAJOR_VERSION}::Network
0035    Qt${QT_MAJOR_VERSION}::Widgets
0036    ${_qt5_compat_libs}
0037    KF5::I18n
0038    KF5::ConfigCore
0039    KF5::KIOCore
0040    KF5::KIONTLM
0041 )
0042 
0043 if(GSSAPI_FOUND)
0044   target_link_libraries(httpauthenticationtest ${GSSAPI_LIBS})
0045 endif()
0046 
0047 ecm_add_test(
0048    httpobjecttest.cpp
0049    ${kioworker-http_SOURCE_DIR}/http.cpp
0050    ${kioworker-http_SOURCE_DIR}/httpauthentication.cpp
0051    ${kioworker-http_SOURCE_DIR}/httpfilter.cpp
0052    TEST_NAME "httpobjecttest" NAME_PREFIX "kioworker-"
0053    LINK_LIBRARIES
0054    Qt${QT_MAJOR_VERSION}::Test
0055    Qt${QT_MAJOR_VERSION}::DBus
0056    Qt${QT_MAJOR_VERSION}::Widgets
0057    Qt${QT_MAJOR_VERSION}::Network # QLocalSocket
0058    Qt${QT_MAJOR_VERSION}::Xml # QDomElement
0059    ${_qt5_compat_libs}
0060    KF5::I18n
0061    KF5::ConfigCore
0062    KF5::KIOCore
0063    KF5::KIONTLM
0064    KF5::Archive
0065 )
0066 if(GSSAPI_FOUND)
0067   target_link_libraries(httpobjecttest ${GSSAPI_LIBS})
0068 endif()
0069 
0070 ecm_add_test(httpfiltertest.cpp ${kioworker-http_SOURCE_DIR}/httpfilter.cpp
0071              TEST_NAME httpfiltertest
0072              LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KF5::I18n KF5::Archive ZLIB::ZLIB)