mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 05:01:30 +00:00
786ec88526
All pages in a CHM File are now ordered accordingly to TOC Data. If a page is not in TOC, it will be added at the end. Testing Done: I created a small example chm file to test this. I can provide the file, if someone would like to have it. Bugs closed: 236688 Reviewed at https://git.reviewboard.kde.org/r/130078/
39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
add_subdirectory( kio-msits )
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../..
|
|
${CHM_INCLUDE_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lib
|
|
)
|
|
|
|
|
|
########### next target ###############
|
|
|
|
set(okularGenerator_chmlib_SRCS
|
|
lib/lchmurlhandler.cpp
|
|
lib/libchmfile.cpp
|
|
lib/libchmfileimpl.cpp
|
|
lib/libchmfile_search.cpp
|
|
lib/libchmtextencoding.cpp
|
|
lib/libchmtocimage.cpp
|
|
generator_chm.cpp
|
|
)
|
|
|
|
okular_add_generator(okularGenerator_chmlib ${okularGenerator_chmlib_SRCS})
|
|
target_link_libraries(okularGenerator_chmlib okularcore ${CHM_LIBRARY} KF5::KHtml)
|
|
|
|
########### autotests ###############
|
|
|
|
add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/" )
|
|
ecm_add_test(autotests/chmgeneratortest.cpp
|
|
TEST_NAME "chmgeneratortest"
|
|
LINK_LIBRARIES Qt5::Test KF5::CoreAddons okularcore
|
|
)
|
|
|
|
target_compile_definitions(chmgeneratortest PRIVATE -DGENERATOR_PATH="$<TARGET_FILE:okularGenerator_chmlib>")
|
|
|
|
########### install files ###############
|
|
install( FILES okularChm.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
|
|
install( PROGRAMS okularApplication_chm.desktop org.kde.mobile.okular_chm.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
|
|
install( FILES org.kde.okular-chm.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} )
|