Changeset View
Changeset View
Standalone View
Standalone View
thumbnail/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN=\"kio5_thumbnail\") | 1 | add_definitions(-DTRANSLATION_DOMAIN=\"kio5_thumbnail\") | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | find_package(OpenEXR) | 3 | find_package(OpenEXR) | ||
4 | set_package_properties(OpenEXR PROPERTIES DESCRIPTION "API for accessing OpenEXR formatted images" | 4 | set_package_properties(OpenEXR PROPERTIES DESCRIPTION "API for accessing OpenEXR formatted images" | ||
5 | URL "http://www.openexr.com" | 5 | URL "http://www.openexr.com" | ||
6 | TYPE OPTIONAL | 6 | TYPE OPTIONAL | ||
7 | PURPOSE "Provides support for OpenEXR formatted images in the thumbnail kioslave" | 7 | PURPOSE "Provides support for OpenEXR formatted images in the thumbnail kioslave" | ||
8 | ) | 8 | ) | ||
9 | 9 | | |||
10 | # TODO find libappimage only | ||||
11 | find_package(AppImageKit) | ||||
12 | set_package_properties(AppImageKit PROPERTIES DESCRIPTION "Core library of the AppImage project" | ||||
13 | URL "https://github.com/AppImage/libappimage" | ||||
14 | TYPE OPTIONAL | ||||
15 | PURPOSE "Provides support for AppImage thumbnails" | ||||
16 | ) | ||||
17 | | ||||
10 | include_directories(${CMAKE_BINARY_DIR}) | 18 | include_directories(${CMAKE_BINARY_DIR}) | ||
11 | 19 | | |||
12 | ########### next target ############### | 20 | ########### next target ############### | ||
13 | 21 | | |||
14 | set(kio_thumbnail_PART_SRCS thumbnail.cpp imagefilter.cpp) | 22 | set(kio_thumbnail_PART_SRCS thumbnail.cpp imagefilter.cpp) | ||
15 | 23 | | |||
16 | add_library(kio_thumbnail MODULE ${kio_thumbnail_PART_SRCS}) | 24 | add_library(kio_thumbnail MODULE ${kio_thumbnail_PART_SRCS}) | ||
17 | 25 | | |||
▲ Show 20 Lines • Show All 203 Lines • ▼ Show 20 Line(s) | 228 | if(TAGLIB_FOUND) | |||
221 | set(audiothumbnail_SRCS audiocreator.cpp) | 229 | set(audiothumbnail_SRCS audiocreator.cpp) | ||
222 | add_library(audiothumbnail MODULE ${audiothumbnail_SRCS}) | 230 | add_library(audiothumbnail MODULE ${audiothumbnail_SRCS}) | ||
223 | target_include_directories(audiothumbnail BEFORE PRIVATE ${TAGLIB_INCLUDES}) | 231 | target_include_directories(audiothumbnail BEFORE PRIVATE ${TAGLIB_INCLUDES}) | ||
224 | target_link_libraries(audiothumbnail ${TAGLIB_LIBRARIES} KF5::KIOWidgets) | 232 | target_link_libraries(audiothumbnail ${TAGLIB_LIBRARIES} KF5::KIOWidgets) | ||
225 | install(TARGETS audiothumbnail DESTINATION ${PLUGIN_INSTALL_DIR}) | 233 | install(TARGETS audiothumbnail DESTINATION ${PLUGIN_INSTALL_DIR}) | ||
226 | set(audiothumbnail_desktop audiothumbnail.desktop) | 234 | set(audiothumbnail_desktop audiothumbnail.desktop) | ||
227 | endif(TAGLIB_FOUND) | 235 | endif(TAGLIB_FOUND) | ||
228 | 236 | | |||
237 | # ########### next target ############### | ||||
238 | | ||||
239 | if(AppImageKit_FOUND) | ||||
240 | | ||||
241 | set(appimagethumbnail_SRCS appimagecreator.cpp) | ||||
242 | add_library(appimagethumbnail MODULE ${appimagethumbnail_SRCS}) | ||||
243 | | ||||
244 | target_link_libraries(appimagethumbnail | ||||
245 | KF5::KIOWidgets | ||||
246 | Qt5::Gui | ||||
247 | appimage | ||||
248 | ) | ||||
249 | | ||||
250 | install(TARGETS appimagethumbnail DESTINATION ${PLUGIN_INSTALL_DIR}) | ||||
251 | install(FILES appimagethumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | ||||
252 | | ||||
253 | endif() | ||||
254 | | ||||
229 | ########### install files ############### | 255 | ########### install files ############### | ||
230 | 256 | | |||
231 | install(FILES thumbcreator.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR}) | 257 | install(FILES thumbcreator.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR}) | ||
232 | install(FILES | 258 | install(FILES | ||
233 | thumbnail.protocol | 259 | thumbnail.protocol | ||
234 | svgthumbnail.desktop | 260 | svgthumbnail.desktop | ||
235 | imagethumbnail.desktop | 261 | imagethumbnail.desktop | ||
236 | jpegthumbnail.desktop | 262 | jpegthumbnail.desktop | ||
237 | textthumbnail.desktop | 263 | textthumbnail.desktop | ||
238 | # desktopthumbnail.desktop | 264 | # desktopthumbnail.desktop | ||
239 | comicbookthumbnail.desktop | 265 | comicbookthumbnail.desktop | ||
240 | kraorathumbnail.desktop | 266 | kraorathumbnail.desktop | ||
241 | ${audiothumbnail_desktop} | 267 | ${audiothumbnail_desktop} | ||
anthonyfieroni: It should be conditional, see htmlthumbnail or audiothumbnail | |||||
broulik: Yeah I noticed that just before you commented :) | |||||
242 | DESTINATION ${SERVICES_INSTALL_DIR}) | 268 | DESTINATION ${SERVICES_INSTALL_DIR}) | ||
243 | 269 | | |||
244 | if (Qt5WebEngineWidgets_FOUND) | 270 | if (Qt5WebEngineWidgets_FOUND) | ||
245 | install(FILES htmlthumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | 271 | install(FILES htmlthumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | ||
246 | 272 | | |||
247 | endif() | 273 | endif() | ||
248 | 274 | |
It should be conditional, see htmlthumbnail or audiothumbnail