1 macro_optional_find_package(OpenEXR)
2 macro_log_feature(OPENEXR_FOUND "OpenEXR" "API for accessing OpenEXR formatted images" "http://www.openexr.com" FALSE "" "Provides support for OpenEXR formatted images in the thumbnail kioslave")
4 find_package(JPEG REQUIRED)
5 include_directories(${JPEG_INCLUDE_DIR})
7 ########### next target ###############
9 set(kio_thumbnail_PART_SRCS thumbnail.cpp)
11 kde4_add_plugin(kio_thumbnail ${kio_thumbnail_PART_SRCS})
13 target_link_libraries(kio_thumbnail ${KDE4_KIO_LIBS})
15 install(TARGETS kio_thumbnail DESTINATION ${PLUGIN_INSTALL_DIR})
17 ########### next target ###############
19 set(imagethumbnail_PART_SRCS imagecreator.cpp)
21 kde4_add_plugin(imagethumbnail ${imagethumbnail_PART_SRCS})
23 target_link_libraries(imagethumbnail ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${KDE4_KIO_LIBS})
25 install(TARGETS imagethumbnail DESTINATION ${PLUGIN_INSTALL_DIR})
27 ########### next target ###############
29 set(jpegthumbnail_PART_SRCS jpegcreator.cpp)
31 kde4_add_plugin(jpegthumbnail ${jpegthumbnail_PART_SRCS})
33 target_link_libraries(jpegthumbnail ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${JPEG_LIBRARIES} ${KDE4_KIO_LIBS})
35 install(TARGETS jpegthumbnail DESTINATION ${PLUGIN_INSTALL_DIR})
37 ########### next target ###############
39 set(svgthumbnail_PART_SRCS svgcreator.cpp)
41 kde4_add_plugin(svgthumbnail ${svgthumbnail_PART_SRCS})
43 target_link_libraries(svgthumbnail ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS}) # needs kdeui for ksvgrenderer
45 install(TARGETS svgthumbnail DESTINATION ${PLUGIN_INSTALL_DIR})
47 ########### next target ###############
49 set(textthumbnail_PART_SRCS textcreator.cpp)
51 kde4_add_plugin(textthumbnail ${textthumbnail_PART_SRCS})
53 target_link_libraries(textthumbnail ${KDE4_KDECORE_LIBS} ${QT_QTGUI_LIBRARY} ${KDE4_KIO_LIBS})
55 install(TARGETS textthumbnail DESTINATION ${PLUGIN_INSTALL_DIR})
57 ########### next target ###############
59 set(htmlthumbnail_PART_SRCS htmlcreator.cpp)
61 kde4_add_plugin(htmlthumbnail ${htmlthumbnail_PART_SRCS})
63 target_link_libraries(htmlthumbnail ${KDE4_KHTML_LIBS} ${QT_QTGUI_LIBRARY} ${KDE4_KIO_LIBS})
65 install(TARGETS htmlthumbnail DESTINATION ${PLUGIN_INSTALL_DIR})
67 ########### next target ###############
70 set(djvuthumbnail_PART_SRCS djvucreator.cpp)
72 kde4_add_plugin(djvuthumbnail ${djvuthumbnail_PART_SRCS})
74 target_link_libraries(djvuthumbnail ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${KDE4_KIO_LIBS})
76 install(TARGETS djvuthumbnail DESTINATION ${PLUGIN_INSTALL_DIR})
79 ########### next target ###############
83 include_directories( ${OPENEXR_INCLUDE_DIR})
85 set(exrthumbnail_PART_SRCS exrcreator.cpp)
87 kde4_add_plugin(exrthumbnail ${exrthumbnail_PART_SRCS})
89 target_link_libraries(exrthumbnail ${KDE4_KIO_LIBS} ${OPENEXR_LIBRARIES})
91 install(TARGETS exrthumbnail DESTINATION ${PLUGIN_INSTALL_DIR})
92 install( FILES exrthumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR})
96 ########### next target ###############
100 set(cursorthumbnail_PART_SRCS cursorcreator.cpp)
102 kde4_add_plugin(cursorthumbnail ${cursorthumbnail_PART_SRCS})
104 target_link_libraries(cursorthumbnail ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${X11_Xcursor_LIB} ${KDE4_KIO_LIBS})
106 install(TARGETS cursorthumbnail DESTINATION ${PLUGIN_INSTALL_DIR})
107 install( FILES cursorthumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR})
109 endif(X11_Xcursor_FOUND)
112 ########### install files ###############
114 install(FILES thumbcreator.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
118 imagethumbnail.desktop
119 jpegthumbnail.desktop
120 textthumbnail.desktop
121 htmlthumbnail.desktop
122 djvuthumbnail.desktop
123 DESTINATION ${SERVICES_INSTALL_DIR})
124 install(FILES thumbnailfont_7x4.png DESTINATION ${DATA_INSTALL_DIR}/kio_thumbnail/pics)