Commit 81d5640c authored by Kishore Gopalakrishnan's avatar Kishore Gopalakrishnan
Browse files

Make cmake call update-mime-database during install.

parent a568504b
Pipeline #42547 passed with stage
in 25 minutes and 39 seconds
......@@ -16,6 +16,9 @@ set(KF5_MIN_VERSION "5.57.0")
find_package(ECM 5.15.0 REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${cantor_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
set( SharedMimeInfo_MINIMUM_VERSION "1.3" ) #TODO: What is the minimum required version?
find_package(SharedMimeInfo ${SharedMimeInfo_MINIMUM_VERSION} REQUIRED)
find_package(Qt5 5.8.0 CONFIG REQUIRED
Core
Widgets
......
......@@ -47,6 +47,7 @@ install( PROGRAMS org.kde.cantor.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
install( FILES cantor_shell.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/cantor )
install( FILES cantor.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} )
install( FILES cantor.xml DESTINATION ${XDG_MIME_INSTALL_DIR} )
update_xdg_mimetypes(${XDG_MIME_INSTALL_DIR})
#########################################################################
# KPART SECTION
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment