From 092c5c6b84b92a40e210ee7447fc7dbd3b492ca4 Mon Sep 17 00:00:00 2001 From: Aleks Kissinger Date: Thu, 18 Oct 2018 15:53:11 +0200 Subject: set up install paths (fixes #32) --- share/applications/tikzit.desktop | 8 ++++++++ share/mime/packages/user-tikz-document.xml | 7 +++++++ tikzit.pro | 21 +++++++++++++++++++-- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100755 share/applications/tikzit.desktop create mode 100644 share/mime/packages/user-tikz-document.xml diff --git a/share/applications/tikzit.desktop b/share/applications/tikzit.desktop new file mode 100755 index 0000000..1e767f7 --- /dev/null +++ b/share/applications/tikzit.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=TikZiT +Comment=A graphical editor for PGF/TikZ +Exec=tikzit %u +Icon=tikzit +Terminal=false +Type=Application +MimeType=application/x-tikz-document diff --git a/share/mime/packages/user-tikz-document.xml b/share/mime/packages/user-tikz-document.xml new file mode 100644 index 0000000..db884f6 --- /dev/null +++ b/share/mime/packages/user-tikz-document.xml @@ -0,0 +1,7 @@ + + + + tikz document + + + diff --git a/tikzit.pro b/tikzit.pro index 1b76fa0..c0d8729 100644 --- a/tikzit.pro +++ b/tikzit.pro @@ -4,12 +4,27 @@ # #------------------------------------------------- -QT += core gui widgets -CONFIG += testcase +QT += core gui widgets + +test { + CONFIG += testcase +} TARGET = tikzit TEMPLATE = app +PREFIX = $$(PREFIX) + +isEmpty(PREFIX) { + PREFIX=/usr/local +} + +share.path = $${PREFIX}/share +share.files = share/* + +target.path = $${PREFIX}/bin +INSTALLS += target share + # platform-specific options win32:RC_ICONS += images/tikzit.ico win32:RC_ICONS += images/tikzdoc.ico @@ -115,3 +130,5 @@ test { SOURCES += src/main.cpp } + + -- cgit v1.2.3