Changeset View
Changeset View
Standalone View
Standalone View
thumbnail/CMakeLists.txt
Show All 14 Lines | 11 | set_package_properties(libappimage PROPERTIES DESCRIPTION "Core library of the AppImage project" | |||
---|---|---|---|---|---|
15 | ) | 15 | ) | ||
16 | if (libappimage_FOUND) | 16 | if (libappimage_FOUND) | ||
17 | # workaround for currently released libappimage versions (sadly no version check possible yet) | 17 | # workaround for currently released libappimage versions (sadly no version check possible yet) | ||
18 | if (NOT LIBAPPIMAGE_INCLUDE_DIRS) | 18 | if (NOT LIBAPPIMAGE_INCLUDE_DIRS) | ||
19 | get_target_property(LIBAPPIMAGE_INCLUDE_DIRS libappimage INTERFACE_INCLUDE_DIRECTORIES) | 19 | get_target_property(LIBAPPIMAGE_INCLUDE_DIRS libappimage INTERFACE_INCLUDE_DIRECTORIES) | ||
20 | endif() | 20 | endif() | ||
21 | endif() | 21 | endif() | ||
22 | 22 | | |||
23 | find_package(Poppler "0.12.1" COMPONENTS Qt5) | ||||
24 | set_package_properties(Poppler PROPERTIES DESCRIPTION "A PDF rendering library" | ||||
25 | URL "https://poppler.freedesktop.org/" TYPE OPTIONAL | ||||
26 | PURPOSE "Provides support for PDF thumbnails") | ||||
27 | | ||||
23 | include_directories(${CMAKE_BINARY_DIR}) | 28 | include_directories(${CMAKE_BINARY_DIR}) | ||
24 | 29 | | |||
25 | ########### next target ############### | 30 | ########### next target ############### | ||
26 | 31 | | |||
27 | set(kio_thumbnail_PART_SRCS thumbnail.cpp imagefilter.cpp) | 32 | set(kio_thumbnail_PART_SRCS thumbnail.cpp imagefilter.cpp) | ||
28 | 33 | | |||
29 | add_library(kio_thumbnail MODULE ${kio_thumbnail_PART_SRCS}) | 34 | add_library(kio_thumbnail MODULE ${kio_thumbnail_PART_SRCS}) | ||
30 | 35 | | |||
▲ Show 20 Lines • Show All 228 Lines • ▼ Show 20 Line(s) | |||||
259 | target_link_libraries(ebookthumbnail | 264 | target_link_libraries(ebookthumbnail | ||
260 | Qt5::Gui | 265 | Qt5::Gui | ||
261 | KF5::KIOWidgets | 266 | KF5::KIOWidgets | ||
262 | KF5::Archive | 267 | KF5::Archive | ||
263 | ) | 268 | ) | ||
264 | 269 | | |||
265 | install(TARGETS ebookthumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR}) | 270 | install(TARGETS ebookthumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR}) | ||
266 | 271 | | |||
272 | # ########### next target ############### | ||||
273 | | ||||
274 | if(Poppler_Qt5_FOUND) | ||||
275 | | ||||
276 | set(pdfthumbnail_SRCS pdfcreator.cpp) | ||||
277 | add_library(pdfthumbnail MODULE ${pdfthumbnail_SRCS}) | ||||
278 | | ||||
279 | target_link_libraries(pdfthumbnail | ||||
280 | Qt5::Gui | ||||
281 | KF5::KIOWidgets | ||||
282 | Poppler::Qt5 | ||||
283 | ) | ||||
284 | | ||||
285 | install(TARGETS pdfthumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR}) | ||||
286 | install(FILES pdfthumbnail.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||||
287 | | ||||
288 | endif() | ||||
289 | | ||||
267 | ########### install files ############### | 290 | ########### install files ############### | ||
268 | 291 | | |||
269 | install(FILES thumbcreator.desktop DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR}) | 292 | install(FILES thumbcreator.desktop DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR}) | ||
270 | install(FILES | 293 | install(FILES | ||
271 | thumbnail.protocol | 294 | thumbnail.protocol | ||
272 | svgthumbnail.desktop | 295 | svgthumbnail.desktop | ||
273 | imagethumbnail.desktop | 296 | imagethumbnail.desktop | ||
274 | jpegthumbnail.desktop | 297 | jpegthumbnail.desktop | ||
Show All 9 Lines |