Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
psemiletov committed Mar 30, 2021
1 parent 8616551 commit 7a1d182
Show file tree
Hide file tree
Showing 6 changed files with 430 additions and 490 deletions.
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ endif()

if(USE_PDF)
find_package(PkgConfig)

if(Qt${QT_VERSION_MAJOR} STREQUAL "Qt5")
pkg_check_modules(QUIET popplerqt5 poppler-qt5)
if(popplerqt5_FOUND)
add_definitions(-DPOPPLER_ENABLE)
Expand All @@ -186,6 +188,18 @@ if(popplerqt5_FOUND)
endif()
endif()

if(Qt${QT_VERSION_MAJOR} STREQUAL "Qt6")
pkg_check_modules(QUIET popplerqt6 poppler-qt6)
if(popplerqt5_FOUND)
add_definitions(-DPOPPLER_ENABLE)
target_link_libraries(tea ${popplerqt6_LIBRARIES})
include_directories(${popplerqt6_INCLUDE_DIRS})
message("+ poppler support")
endif()
endif()

endif()

if(USE_DJVU)
find_package(PkgConfig)
pkg_check_modules(QUIET ddjvuapi ddjvuapi)
Expand Down
Loading

0 comments on commit 7a1d182

Please sign in to comment.