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 | find_package(libappimage) | 10 | find_package(libappimage 0.1.10 CONFIG) | ||
11 | set_package_properties(libappimage PROPERTIES DESCRIPTION "Core library of the AppImage project" | 11 | set_package_properties(libappimage PROPERTIES DESCRIPTION "Core library of the AppImage project" | ||
12 | URL "https://github.com/AppImage/libappimage" | 12 | URL "https://github.com/AppImage/libappimage" | ||
13 | TYPE OPTIONAL | 13 | TYPE OPTIONAL | ||
14 | PURPOSE "Provides support for AppImage thumbnails" | 14 | PURPOSE "Provides support for AppImage thumbnails" | ||
15 | ) | 15 | ) | ||
16 | if (libappimage_FOUND) | | |||
17 | # workaround for currently released libappimage versions (sadly no version check possible yet) | | |||
18 | if (NOT LIBAPPIMAGE_INCLUDE_DIRS) | | |||
19 | get_target_property(LIBAPPIMAGE_INCLUDE_DIRS libappimage INTERFACE_INCLUDE_DIRECTORIES) | | |||
20 | endif() | | |||
21 | endif() | | |||
22 | 16 | | |||
23 | include_directories(${CMAKE_BINARY_DIR}) | 17 | include_directories(${CMAKE_BINARY_DIR}) | ||
24 | 18 | | |||
25 | ########### next target ############### | 19 | ########### next target ############### | ||
26 | 20 | | |||
27 | set(kio_thumbnail_PART_SRCS thumbnail.cpp imagefilter.cpp) | 21 | set(kio_thumbnail_PART_SRCS thumbnail.cpp imagefilter.cpp) | ||
28 | 22 | | |||
29 | add_library(kio_thumbnail MODULE ${kio_thumbnail_PART_SRCS}) | 23 | add_library(kio_thumbnail MODULE ${kio_thumbnail_PART_SRCS}) | ||
▲ Show 20 Lines • Show All 204 Lines • ▼ Show 20 Line(s) | |||||
234 | install(TARGETS opendocumentthumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR}) | 228 | install(TARGETS opendocumentthumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR}) | ||
235 | 229 | | |||
236 | # ########### next target ############### | 230 | # ########### next target ############### | ||
237 | 231 | | |||
238 | if(libappimage_FOUND) | 232 | if(libappimage_FOUND) | ||
239 | 233 | | |||
240 | set(appimagethumbnail_SRCS appimagecreator.cpp) | 234 | set(appimagethumbnail_SRCS appimagecreator.cpp) | ||
241 | add_library(appimagethumbnail MODULE ${appimagethumbnail_SRCS}) | 235 | add_library(appimagethumbnail MODULE ${appimagethumbnail_SRCS}) | ||
242 | target_include_directories(appimagethumbnail PRIVATE ${LIBAPPIMAGE_INCLUDE_DIRS}) | | |||
243 | target_link_libraries(appimagethumbnail | 236 | target_link_libraries(appimagethumbnail | ||
244 | KF5::KIOWidgets | 237 | KF5::KIOWidgets | ||
245 | Qt5::Gui | 238 | Qt5::Gui | ||
246 | ${LIBAPPIMAGE_LIBRARIES} | 239 | libappimage | ||
247 | ) | 240 | ) | ||
248 | 241 | | |||
249 | install(TARGETS appimagethumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR}) | 242 | install(TARGETS appimagethumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR}) | ||
250 | install(FILES appimagethumbnail.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | 243 | install(FILES appimagethumbnail.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||
251 | 244 | | |||
252 | endif() | 245 | endif() | ||
253 | 246 | | |||
254 | # ########### next target ############### | 247 | # ########### next target ############### | ||
Show All 29 Lines |