Skip to content

Commit 2dbb1bf

Browse files
committed
added some installing-tests
1 parent f2a8d4f commit 2dbb1bf

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
#-------------------------------------------------
2+
#
3+
# Project created by QtCreator 2016-11-27T19:43:01
4+
#
5+
#-------------------------------------------------
6+
7+
QT += core gui
8+
CONFIG += c++11 stl exceptions
9+
10+
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
11+
12+
TARGET = SlitScanGenerator
13+
TEMPLATE = app
14+
15+
QMAKE_TARGET_PRODUCT = "SlitScanGenerator"
16+
QMAKE_TARGET_COPYRIGHT = "(c) 2016-2018 by Jan W. Krieger"
17+
RC_ICONS += ./icons/logo_64x64.ico
18+
QMAKE_TARGET_COMPANY = "https://github.com/jkriege2/SlitScanGenerator"
19+
20+
TEMPNAME = $${QMAKE_QMAKE}
21+
QTPATH = $$dirname(TEMPNAME)
22+
23+
INSTALLDIR=$$OUT_PWD
24+
25+
contains(QTPATH, .*msys.* ) {
26+
QTBINDIR=$$QTPATH
27+
QTPLUGINDIR=$$QTPATH/../share/qt5/plugins
28+
} else {
29+
QTBINDIR=$$QTPATH
30+
QTPLUGINDIR=$$QTPATH/../plugins
31+
}
32+
33+
win32-g++:contains(QMAKE_HOST.arch, x86_64):{
34+
message("Host is 64bit OUT_PWD='$$OUT_PWD'")
35+
FFMPEG_PATH = ../ffmpeg/win64
36+
INSTALLDIR=$$OUT_PWD/$${QMAKE_TARGET_PRODUCT}_win64
37+
}else:{
38+
message("Host is 32bit OUT_PWD='$$OUT_PWD' QTDIR='$$QTDIR'")
39+
FFMPEG_PATH = ../ffmpeg/win32
40+
INSTALLDIR=$$OUT_PWD/$${QMAKE_TARGET_PRODUCT}_win64
41+
}
42+
message("-- QTPATH='$$QTPATH'")
43+
message("-- QTDIR='$$QTDIR'")
44+
message("-- QT_INSTALL_BINS='$$QT_INSTALL_BINS'")
45+
message("-- QT_INSTALL_LIBS='$$QT_INSTALL_LIBS'")
46+
message("-- QT_INSTALL_PLUGINS='$$QT_INSTALL_PLUGINS'")
47+
message("-- QMAKE_QMAKE='$$QMAKE_QMAKE'")
48+
message("-- QMAKE_LIBDIR='$$QMAKE_LIBDIR'")
49+
message("-- QMAKE_PATH='$$QMAKE_PATH'")
50+
message("-- QTBINDIR='$$QTBINDIR'")
51+
message("-- QTPLUGINDIR='$$QTPLUGINDIR'")
52+
message("-- INSTALLDIR='$$INSTALLDIR'")
53+
54+
55+
56+
SOURCES += main.cpp\
57+
mainwindow.cpp \
58+
cimg_tools.cpp \
59+
ffmpeg_tools.cpp \
60+
imageviewer.cpp \
61+
processingparametertable.cpp \
62+
aboutbox.cpp \
63+
importdialog.cpp \
64+
processingwidget.cpp \
65+
processingthread.cpp \
66+
processingtask.cpp \
67+
taskswidget.cpp \
68+
geo_tools.cpp
69+
70+
HEADERS += mainwindow.h \
71+
../CImg/CImg.h \
72+
cimg_tools.h \
73+
ffmpeg_tools.h \
74+
imageviewer.h \
75+
processingparametertable.h \
76+
aboutbox.h \
77+
importdialog.h \
78+
processingwidget.h \
79+
processingthread.h \
80+
processingtask.h \
81+
taskswidget.h \
82+
geo_tools.h
83+
84+
FORMS += mainwindow.ui \
85+
aboutbox.ui \
86+
importdialog.ui \
87+
processingwidget.ui
88+
89+
INCLUDEPATH += ../CImg \
90+
$$FFMPEG_PATH/include
91+
92+
DEFINES +=
93+
CONFIG(debug, debug|release):DEFINES += DEBUG_FLAG
94+
95+
LIBS += -lm -L$$FFMPEG_PATH/lib -lavutil -lavcodec -lavdevice -lswscale -lavformat -lswresample -lpostproc -lavfilter
96+
97+
MAKE_CXXFLAGS_RELEASE += -O3 -fopenmp -msse2 -msse -fpmath=both
98+
99+
RESOURCES += \
100+
slitscangenerator.qrc
101+
102+
103+
FFMPEG_COPY_LIBS.files = $$FFMPEG_PATH/bin/*.*
104+
FFMPEG_COPY_LIBS.path = $$INSTALLDIR
105+
106+
FFMPEG_COPY_DOC.files = $$FFMPEG_PATH/doc/*.*
107+
FFMPEG_COPY_DOC.path = $$INSTALLDIR/ffmpeg/doc/
108+
109+
FFMPEG_COPY_LICENSE.files = $$FFMPEG_PATH/licenses/*.*
110+
FFMPEG_COPY_LICENSE.path = $$INSTALLDIR/ffmpeg/licenses/
111+
112+
IMAGEPLUGINS_COPY.files = $$QTPLUGINDIR/imageformats/*.dll
113+
IMAGEPLUGINS_COPY.path = $$INSTALLDIR/plugins/imageformats/
114+
PLATFORMPLUGINS_COPY.files = $$QTPLUGINDIR/platforms/*.dll
115+
PLATFORMPLUGINS_COPY.path = $$INSTALLDIR/plugins/platforms/
116+
117+
INSTALLS += FFMPEG_COPY_LIBS FFMPEG_COPY_DOC FFMPEG_COPY_LICENSE IMAGEPLUGINS_COPY PLATFORMPLUGINS_COPY

0 commit comments

Comments
 (0)