mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-27 20:37:11 +00:00
This adds thumbnailer support both for Gnome and KDE5/Qt5. The gnome thumbnailer is installed by default on linux systems, as it does not add any additional dependencies at build time and can be used by GnomeThumbnailFactory. The KDE/Qt thumbnailer need the whole Qt and Kio stack to build, as well as the distribution dependend variables set. Because of that it is not build by default. For the thumnailers to work for all of aseprites supported file formats and additonal mime type file is installed. Packagers in addition need to call update-mime-database path-to-mime-database (/usr/share/mime for example) as post install command.
18 lines
811 B
CMake
18 lines
811 B
CMake
cmake_minimum_required(VERSION 2.8.12)
|
|
set(QT_MIN_VERSION "5.2.0")
|
|
project(asepritethumbnail)
|
|
find_package(ECM REQUIRED NO_MODULE)
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
|
|
set(KDE_INSTALL_DIRS_NO_DEPRECATED, TRUE)
|
|
include(FeatureSummary)
|
|
include(WriteBasicConfigVersionFile)
|
|
include(KDEInstallDirs)
|
|
include(KDECMakeSettings)
|
|
include(KDECompilerSettings)
|
|
find_package(KF5 REQUIRED COMPONENTS KIO)
|
|
add_definitions(${QT_DEFINITIONS} -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
|
|
set(KDE_INSTALL_USE_QT_SYS_PATHS)
|
|
add_library(asepritethumbnail MODULE aseprite_thumb_creator.cpp)
|
|
target_link_libraries(asepritethumbnail KF5::KIOWidgets)
|
|
install(TARGETS asepritethumbnail DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
install(FILES asepritethumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR}) |