fem_draw_qt.pro 1.75 KB
Newer Older
Peter Zhigalov's avatar
Peter Zhigalov committed
1 2 3 4 5 6
#-------------------------------------------------
#
# Project created by QtCreator 2014-11-03T09:55:33
#
#-------------------------------------------------

7
TARGET = fem_draw_qt
Peter Zhigalov's avatar
Peter Zhigalov committed
8
TEMPLATE = app
Peter Zhigalov's avatar
Peter Zhigalov committed
9
CONFIG += warn_on
Peter Zhigalov's avatar
Peter Zhigalov committed
10

11
QT += core gui svg
12
INCLUDEPATH += src_qt
Peter Zhigalov's avatar
Peter Zhigalov committed
13 14

greaterThan(QT_MAJOR_VERSION, 4) {
15
    QT += widgets printsupport
Peter Zhigalov's avatar
Peter Zhigalov committed
16 17 18
    DEFINES += HAVE_QT5
}

19 20 21 22
lessThan(QT_VERSION, 4.5.0) {
    DEFINES += HAVE_LESS_THAN_QT45
}

Peter Zhigalov's avatar
Peter Zhigalov committed
23
SOURCES += \
24 25 26
    src_qt/libs/jo_jpeg.cpp \
    src_qt/libs/jo_gif.cpp \
    src_qt/libs/jo_tga.cpp \
27
    src_qt/Application.cpp \
28 29 30
    src_qt/paintwidget.cpp \
    src_qt/main.cpp \
    src_qt/mainwindow.cpp
Peter Zhigalov's avatar
Peter Zhigalov committed
31 32

HEADERS += \
33
    src_qt/libs/jo_images.h \
34
    src_qt/Application.h \
35 36
    src_qt/paintwidget.h \
    src_qt/mainwindow.h
Peter Zhigalov's avatar
Peter Zhigalov committed
37 38

FORMS += \
39
    src_qt/mainwindow.ui
Peter Zhigalov's avatar
Peter Zhigalov committed
40

41
RESOURCES += resources/icon.qrc
42
QMAKE_RESOURCE_FLAGS += -threshold 0 -compress 9
Peter Zhigalov's avatar
Peter Zhigalov committed
43 44

win32 {
45
    RC_FILE += src_qt/resources.rc
Peter Zhigalov's avatar
Peter Zhigalov committed
46 47
}

48 49 50 51
macx {
    QMAKE_INFO_PLIST = resources/Info.plist
    ICON = resources/fem_draw.icns
    TARGET = "FEM Draw"
52
    QMAKE_CXXFLAGS += -Wno-invalid-constexpr
53 54
}

Peter Zhigalov's avatar
Peter Zhigalov committed
55
*g++*|*clang* {
Peter Zhigalov's avatar
Peter Zhigalov committed
56
    QMAKE_CXXFLAGS_WARN_ON *= -Wextra
Peter Zhigalov's avatar
Peter Zhigalov committed
57 58 59 60 61 62 63 64 65 66 67
    QMAKE_CXXFLAGS_RELEASE -= -O2
    QMAKE_CXXFLAGS_RELEASE *= -O3
    QMAKE_CXXFLAGS_RELEASE *= -DNDEBUG
}

*msvc* {
    QMAKE_CXXFLAGS_RELEASE -= -O2
    QMAKE_CXXFLAGS_RELEASE *= -Ox
    DEFINES += _CRT_SECURE_NO_WARNINGS
    DEFINES += _USE_MATH_DEFINES
}
68 69 70 71 72 73 74 75 76 77 78 79

# qmake CONFIG+=use_static_qjpeg
use_static_qjpeg {
    QTPLUGIN += qjpeg
    DEFINES += USE_STATIC_QJPEG
}

# qmake CONFIG+=use_static_qtiff
use_static_qtiff {
    QTPLUGIN += qtiff
    DEFINES += USE_STATIC_QTIFF
}
80 81 82 83 84 85 86

# qmake CONFIG+=use_static_qico
use_static_qico {
    QTPLUGIN += qico
    DEFINES += USE_STATIC_QICO
}