-
Notifications
You must be signed in to change notification settings - Fork 0
/
IceGrowth.pro
87 lines (75 loc) · 2.49 KB
/
IceGrowth.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
82
83
84
85
86
87
TARGET = IceGrowth
OBJECTS_DIR = obj
CONFIG -= app_bundle
CONFIG += console
DEPENDPATH += .
INCLUDEPATH += ./include
MOC_DIR=moc
DESTDIR=./
QMAKE_CC = clang
QMAKE_CXX = clang++
QT += gui opengl core
linux:QMAKE_CXXFLAGS += $$system(Magick++-config --cppflags )
linux:LIBS += $$system(Magick++-config --ldflags --libs )
linux:LIBS += -lGLEW -lglfw
macx:QMAKE_CXXFLAGS += -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6
macx:LIBS += -L/usr/local/lib -lMagick++-6.Q16 -lMagickWand-6.Q16 -lMagickCore-6.Q16
CONFIG += c++11
#DEFINES += GRAPHICSDEBUG
#DEFINES += DEBUG
#DEFINES += TRACE
#DEFINES += LOG
#DEFINES += DLA_DEBUG
#DEFINES += DLA_TRACE
#DEFINES += HIT
# Input
SOURCES += src/heatgrid.cpp \
src/hexnavigator.cpp \
src/icegenerator.cpp \
src/icegrid.cpp \
src/image.cpp \
src/main.cpp \
src/NGLscene.cpp \
src/NGLsceneMouseControls.cpp \
src/squarenavigator.cpp
HEADERS += include/color.h \
include/common.h \
include/grid.h \
include/heatgrid.h \
include/hexnavigator.h \
include/icegenerator.h \
include/icegrid.h \
include/image.h \
include/navigator.h \
include/NGLscene.h \
include/point.h \
include/randomdist.h \
include/squarenavigator.h \
include/windowparam.h
OTHER_FILES += shaders/*.glsl \
# as I want to support 4.8 and 5 this will set a flag for some of the mac stuff
# mainly in the types.h file for the setMacVisual which is native in Qt5
isEqual(QT_MAJOR_VERSION, 5) {
cache()
DEFINES +=QT5BUILD
}
# finding NGL things
!equals(PWD, $${OUT_PWD}){
copydata.commands = echo "creating destination dirs" ;
copydata.commands += mkdir -p $$OUT_PWD/shaders ;
copydata.commands += echo "copying files" ;
copydata.commands += $(COPY_DIR) $$PWD/shaders/* $$OUT_PWD/shaders/ ;
first.depends = $(first) copydata
export(first.depends)
export(copydata.commands)
QMAKE_EXTRA_TARGETS += first copydata
}
NGLPATH = $$(NGLDIR)
isEmpty(NGLPATH){ # note brace must be here
message("including $HOME/NGL")
include($(HOME)/NGL/UseNGL.pri)
}
else{ # note brace must be here
message("Using custom NGL location")
include($(NGLDIR)/UseNGL.pri)
}