mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
a234a902dc
This is a squash of the original branch It also contains fixes/rework from Albert Astals Cid If you're interested in its history have a look at the gsoc2018_digitalsignature branch The poppler dependency situation is: * With 0.51 you get most signature information * With 0.68 you also get signature location/reason information * With 0.73 you also get signature certificate information
89 lines
2.6 KiB
CMake
89 lines
2.6 KiB
CMake
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
|
|
)
|
|
|
|
if(Poppler_Qt5_FOUND)
|
|
ecm_add_test(parttest.cpp
|
|
TEST_NAME "parttest"
|
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore okularpart
|
|
)
|
|
|
|
ecm_add_test(visibilitytest.cpp
|
|
TEST_NAME "visibilitytest"
|
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test okularcore
|
|
)
|
|
endif()
|
|
|
|
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(calculatetexttest.cpp
|
|
TEST_NAME "calculatetexttest"
|
|
LINK_LIBRARIES Qt5::Widgets Qt5::Test okularcore
|
|
)
|
|
|
|
if(KF5Activities_FOUND)
|
|
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>")
|
|
endif()
|
|
|
|
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")
|
|
|
|
ecm_add_test(signatureformtest.cpp
|
|
TEST_NAME "signatureformtest"
|
|
LINK_LIBRARIES Qt5::Test okularcore
|
|
)
|