File: common.pro

package info (click to toggle)
qwtplot3d 0.2.7%2Bsvn191%2Bgcc7-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 1,360 kB
  • sloc: cpp: 8,913; ansic: 5,078; python: 95; makefile: 28; sh: 1
file content (47 lines) | stat: -rw-r--r-- 876 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
TEMPLATE     = app
CONFIG      += qt warn_on thread debug
UI_DIR = tmp
MOC_DIR      = tmp
OBJECTS_DIR  = tmp
DESTDIR = ../bin
QT += widgets

linux-g++:QMAKE_CXXFLAGS += -fno-exceptions

unix{
  unix:LIBS += -lqwtplot3d-qt$$QT_MAJOR_VERSION
  greaterThan(QT_MAJOR_VERSION, 4) {
    INCLUDEPATH    += /usr/include/qwtplot3d
  }
  else {
    INCLUDEPATH    += /usr/include/qwtplot3d-qt4
  }
}

DEPENDPATH	= $$INCLUDEPATH

win32{
  LIBS += ../../lib/qwtplot3d.lib
  TEMPLATE  = vcapp
  DEFINES  += QT_DLL QWT3D_DLL
  RC_FILE = ../icon.rc
  contains (CONFIG, debug)  {
    QMAKE_LFLAGS += /NODEFAULTLIB:msvcrt
    DESTDIR = ../bin/debug
  }
  !contains (CONFIG, release)  {
    DESTDIR = ../bin/release
  }
}

MYVERSION = $$[QMAKE_VERSION] 
ISQT4 = $$find(MYVERSION, ^[2-9])

!isEmpty( ISQT4 ) {
#RESOURCES     = ../images.qrc
QT += opengl
}

isEmpty( ISQT4 ) {
CONFIG += opengl
}