Commits

yotis  committed eab6d60

Added library as installation target on unix makefile

  • Participants
  • Parent commits 3752a31

Comments (0)

Files changed (1)

 QT -= core gui
 QT += opengl
 
-DESTDIR = $${PWD}/$${QMAKE_TARGET.arch}
+win32: DESTDIR = $${PWD}/$${QMAKE_TARGET.arch}
+unix {
+    isEmpty(PREFIX): PREFIX = /usr/local
+    isEmpty(LIBDIR) {
+        *-64: LIBDIR = lib64
+        else: LIBDIR = lib
+    }
+    target.path = $$PREFIX/$$LIBDIR
+    INSTALLS += target
+}
+
 CONFIG(debug, debug|release): TARGET = $${TARGET}d
 
 DEFINES += GLXX_LIBRARY_BUILD