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

0001 include(ECMMarkAsTest)
0002 include(ECMAddTests)
0003 
0004 find_package(Qt5Test "${REQUIRED_QT_VERSION}" CONFIG REQUIRED)
0005 set_package_properties(Qt5Test PROPERTIES PURPOSE "Required for autotests")
0006 
0007 include_directories(
0008   ${KHTML_SOURCE_DIR}/
0009   ${KHTML_SOURCE_DIR}/misc
0010   ${KHTML_SOURCE_DIR}/dom
0011   ${KHTML_SOURCE_DIR}/xml
0012   ${KHTML_SOURCE_DIR}/html
0013   ${KHTML_SOURCE_DIR}/rendering
0014   ${KHTML_SOURCE_DIR}/ecma
0015   ${KHTML_SOURCE_DIR}/imload
0016   ${KHTML_SOURCE_DIR}/imload/decoders
0017   ${KHTML_SOURCE_DIR}/svg
0018   ${KHTML_SOURCE_DIR}/svg/graphics
0019   ${KHTML_SOURCE_DIR}/platform/graphics
0020   ${KHTML_SOURCE_DIR}/platform/text
0021   ${KHTML_SOURCE_DIR}/platform
0022   ${KHTML_SOURCE_DIR}/compat
0023   ${KHTML_SOURCE_DIR}/css
0024 )
0025 
0026 ecm_add_test(khtmlparttest.cpp
0027     LINK_LIBRARIES Qt5::Test KF5::KHtml Qt5::Widgets KF5::XmlGui KF5::TextWidgets KF5::Parts
0028     TEST_NAME parttest
0029     NAME_PREFIX "khtml-"
0030     GUI
0031 )
0032 
0033 set(kencodingdetector_SRCS
0034     ${KHTML_SOURCE_DIR}/misc/kencodingdetector.cpp
0035     ${KHTML_SOURCE_DIR}/misc/guess_ja.cpp
0036 )
0037 ecm_add_test(kencodingdetectortest.cpp ${kencodingdetector_SRCS}
0038     LINK_LIBRARIES KF5::Codecs KF5::I18n KF5::KHtml Qt5::Test
0039     TEST_NAME kencodingdetectortest
0040     NAME_PREFIX "khtml-"
0041     GUI
0042 )