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 0.1.10 CONFIG) | 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 | 16 | | |||
17 | find_package(X11) | ||||
18 | set_package_properties(X11 PROPERTIES DESCRIPTION "X11 libraries" | ||||
19 | URL "https://www.x.org" | ||||
20 | TYPE OPTIONAL | ||||
21 | PURPOSE "Provides support for XCursor thumbnails" | ||||
22 | ) | ||||
23 | | ||||
24 | | ||||
17 | include_directories(${CMAKE_BINARY_DIR}) | 25 | include_directories(${CMAKE_BINARY_DIR}) | ||
18 | 26 | | |||
19 | ########### next target ############### | 27 | ########### next target ############### | ||
20 | 28 | | |||
21 | set(kio_thumbnail_PART_SRCS thumbnail.cpp imagefilter.cpp) | 29 | set(kio_thumbnail_PART_SRCS thumbnail.cpp imagefilter.cpp) | ||
22 | 30 | | |||
23 | add_library(kio_thumbnail MODULE ${kio_thumbnail_PART_SRCS}) | 31 | add_library(kio_thumbnail MODULE ${kio_thumbnail_PART_SRCS}) | ||
24 | 32 | | |||
▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Line(s) | 126 | if(OpenEXR_FOUND) | |||
133 | 141 | | |||
134 | install(TARGETS exrthumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR}) | 142 | install(TARGETS exrthumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR}) | ||
135 | install( FILES exrthumbnail.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | 143 | install( FILES exrthumbnail.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||
136 | 144 | | |||
137 | endif() | 145 | endif() | ||
138 | 146 | | |||
139 | ########### next target ############### | 147 | ########### next target ############### | ||
140 | 148 | | |||
141 | # if(X11_Xcursor_FOUND) | 149 | if(X11_FOUND) | ||
adridg: X11_Xcursor_FOUND, since X11 can be found without Xcursor. | |||||
142 | # | 150 | | ||
143 | # set(cursorthumbnail_PART_SRCS cursorcreator.cpp) | 151 | set(cursorthumbnail_PART_SRCS cursorcreator.cpp) | ||
144 | # | 152 | | ||
145 | # add_library(cursorthumbnail MODULE ${cursorthumbnail_PART_SRCS}) | 153 | add_library(cursorthumbnail MODULE ${cursorthumbnail_PART_SRCS}) | ||
146 | # | 154 | | ||
147 | # target_link_libraries(cursorthumbnail ${X11_Xcursor_LIB} ${KIO_LIBRARIES}) | 155 | target_link_libraries(cursorthumbnail | ||
148 | # | 156 | KF5::KIOCore | ||
149 | # install(TARGETS cursorthumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR}) | 157 | KF5::KIOWidgets | ||
150 | # install( FILES cursorthumbnail.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | 158 | ${X11_Xcursor_LIB} | ||
151 | # | 159 | ) | ||
152 | # endif() | 160 | | ||
153 | # | 161 | install(TARGETS cursorthumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR}) | ||
162 | install( FILES cursorthumbnail.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||||
163 | | ||||
164 | endif() | ||||
154 | 165 | | |||
155 | ########### next target ############### | 166 | ########### next target ############### | ||
156 | 167 | | |||
157 | set ( windowsexethumbnail_SRCS windowsexecreator.cpp icoutils_common.cpp) | 168 | set ( windowsexethumbnail_SRCS windowsexecreator.cpp icoutils_common.cpp) | ||
158 | set ( windowsimagethumbnail_SRCS windowsimagecreator.cpp icoutils_common.cpp) | 169 | set ( windowsimagethumbnail_SRCS windowsimagecreator.cpp icoutils_common.cpp) | ||
159 | 170 | | |||
160 | if(WIN32) | 171 | if(WIN32) | ||
161 | set ( windowsexethumbnail_SRCS ${windowsexethumbnail_SRCS} icoutils_win.cpp ) | 172 | set ( windowsexethumbnail_SRCS ${windowsexethumbnail_SRCS} icoutils_win.cpp ) | ||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |
X11_Xcursor_FOUND, since X11 can be found without Xcursor.