forked from qt-creator/qt-creator
CMake build/Linux: Install desktop and appstream files
Fixes: QTCREATORBUG-23906 Change-Id: I9d796c8826dbb4beb980aa29b75526fe96093921 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -98,10 +98,10 @@ BASENAME = $$(INSTALL_BASENAME)
|
||||
isEmpty(BASENAME): BASENAME = qt-creator-$${PLATFORM}$(INSTALL_EDITION)-$${QTCREATOR_VERSION}$(INSTALL_POSTFIX)
|
||||
|
||||
linux {
|
||||
appstream.files = dist/org.qt-project.qtcreator.appdata.xml
|
||||
appstream.files = share/metainfo/org.qt-project.qtcreator.appdata.xml
|
||||
appstream.path = $$QTC_PREFIX/share/metainfo/
|
||||
|
||||
desktop.files = dist/org.qt-project.qtcreator.desktop
|
||||
desktop.files = share/applications/org.qt-project.qtcreator.desktop
|
||||
desktop.path = $$QTC_PREFIX/share/applications/
|
||||
|
||||
INSTALLS += appstream desktop
|
||||
|
@@ -1 +1,11 @@
|
||||
add_subdirectory(qtcreator)
|
||||
|
||||
if (NOT APPLE AND NOT WIN32)
|
||||
install(
|
||||
DIRECTORY
|
||||
applications
|
||||
metainfo
|
||||
DESTINATION
|
||||
share
|
||||
)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user