summaryrefslogtreecommitdiff
path: root/tikzit.pro
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-10-18 15:53:11 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-10-18 15:53:11 +0200
commit092c5c6b84b92a40e210ee7447fc7dbd3b492ca4 (patch)
tree54db3dfe75f8c104938eaf68632ed4f3ff02d04c /tikzit.pro
parent375621b09d85ee3430659c8278c8ebb56d9a4507 (diff)
set up install paths (fixes #32)
Diffstat (limited to 'tikzit.pro')
-rw-r--r--tikzit.pro21
1 files changed, 19 insertions, 2 deletions
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
}
+
+