You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.1 KiB
70 lines
2.1 KiB
add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/" ) |
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/..) |
|
|
|
ecm_add_test(shelltest.cpp ../shell/shellutils.cpp |
|
TEST_NAME "shelltest" |
|
LINK_LIBRARIES Qt5::Test okularcore |
|
) |
|
|
|
ecm_add_test(parttest.cpp |
|
TEST_NAME "parttest" |
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore okularpart |
|
) |
|
|
|
ecm_add_test(documenttest.cpp |
|
TEST_NAME "documenttest" |
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore KF5::ThreadWeaver |
|
) |
|
|
|
ecm_add_test(searchtest.cpp |
|
TEST_NAME "searchtest" |
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore |
|
) |
|
|
|
ecm_add_test(annotationstest.cpp |
|
TEST_NAME "annotationstest" |
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore |
|
) |
|
|
|
ecm_add_test(urldetecttest.cpp |
|
TEST_NAME "urldetecttest" |
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml KF5::CoreAddons |
|
) |
|
|
|
ecm_add_test(editannotationcontentstest.cpp testingutils.cpp |
|
TEST_NAME "editannotationcontentstest" |
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore |
|
) |
|
|
|
ecm_add_test(addremoveannotationtest.cpp testingutils.cpp |
|
TEST_NAME "addremoveannotationtest" |
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore |
|
) |
|
|
|
ecm_add_test(translateannotationtest.cpp testingutils.cpp |
|
TEST_NAME "translateannotationtest" |
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore |
|
) |
|
|
|
ecm_add_test(modifyannotationpropertiestest.cpp testingutils.cpp |
|
TEST_NAME "modifyannotationpropertiestest" |
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test okularcore |
|
) |
|
|
|
ecm_add_test(editformstest.cpp |
|
TEST_NAME "editformstest" |
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test okularcore |
|
) |
|
|
|
ecm_add_test(mainshelltest.cpp ../shell/okular_main.cpp ../shell/shellutils.cpp ../shell/shell.cpp |
|
TEST_NAME "mainshelltest" |
|
LINK_LIBRARIES Qt5::Test KF5::Activities okularpart okularcore |
|
) |
|
target_compile_definitions(mainshelltest PRIVATE OKULAR_BINARY="$<TARGET_FILE:okular>") |
|
|
|
ecm_add_test(generatorstest.cpp |
|
TEST_NAME "generatorstest" |
|
LINK_LIBRARIES Qt5::Test KF5::CoreAddons okularcore |
|
) |
|
target_compile_definitions(generatorstest PRIVATE GENERATORS_BUILD_DIR="${CMAKE_BINARY_DIR}/generators")
|
|
|