-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpxlpeep.pro
81 lines (67 loc) · 1.9 KB
/
pxlpeep.pro
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#-------------------------------------------------
#
# Project created by QtCreator 2015-05-30T16:11:06
#
#-------------------------------------------------
QT += core gui
QT += opengl
QT += network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = pxlpeep
TEMPLATE = app
SOURCES +=\
SetUnitDialog.cpp \
main.cpp \
ImageWindow.cpp \
ImageData.cpp \
MainDialog.cpp
HEADERS += \
SetUnitDialog.h \
colormapper.h \
ImageWindow.h \
ImageData.h \
definitions.h \
MainDialog.h
FORMS += \
MainDialog.ui \
SetUnitDialog.ui
RESOURCES += \
pxlpeep.qrc
#http://stackoverflow.com/a/14999452/149506
CONFIG(debug, release|debug):DEFINES += _DEBUG
# For linux:
unix:!macx {
QMAKE_CXXFLAGS += -fopenmp
LIBS += -fopenmp -lfreeimage
# Statically link qt components so that we don't get weird errors when trying to load platform plugins.
# Doesn't work on Mac.
CONFIG += qt static
}
# For Catalina:
macx {
QMAKE_CXXFLAGS += -Xpreprocessor -fopenmp
INCLUDEPATH += /usr/local/opt/freeimage/include
INCLUDEPATH += /usr/local/opt/libomp/include
LIBS += -L/usr/local/lib -lfreeimage -lomp
ICON = loupe.icns
DEFINES += Q_OS_MACOS
}
win32 {
message("PWD is " $$PWD)
LIBS += -L$$PWD/../FreeImageDLL/Dist/x64/ -lFreeImage
INCLUDEPATH += $$PWD/../FreeImageDLL/Dist/x64
DEPENDPATH += $$PWD/../FreeImageDLL/Dist/x64
RC_ICONS = loupe.ico
}
# Note. To debug this on Mac, you may have to do the following:
# Thanks to this guy for saving me: https://stackoverflow.com/a/35070568/149506
#
# mv FILE.dylib FILE.dylib.old
# ln -s /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO/FILE.dylib /usr/local/lib/FILE.dylib
#
# and tab completion doesn't work for some reason? (hidden files?)
# I had to do this for the following values of FILE:
# libJPEG, libGIF, libTIFF, libPnG
DISTFILES += \
pxlpeep.desktop \
pxlpeep.sh