-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBFlock.pro
58 lines (54 loc) · 1.64 KB
/
BFlock.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
# This specifies the exe name
TARGET=BFlock
# where to put the .o files
OBJECTS_DIR=obj
# core Qt Libs to use add more here if needed.
QT+=gui opengl core
# 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
}
# where to put moc auto generated files
MOC_DIR=moc
# on a mac we don't create a .app bundle file ( for ease of multiplatform use)
CONFIG-=app_bundle
# Auto include all .cpp files in the project src directory (can specifiy individually if required)
SOURCES+= $$PWD/src/NGLScene.cpp \
$$PWD/src/NGLSceneMouseControls.cpp \
$$PWD/src/MainWindow.cpp \
$$PWD/src/main.cpp \
src/Boid.cpp \
src/BoidMath.cpp \
src/Flock.cpp \
src/Octree.cpp \
src/SimExport.cpp
# same for the .h files
HEADERS+= $$PWD/include/NGLScene.h \
$$PWD/include/MainWindow.h \
$$PWD/include/WindowParams.h \
include/Boid.h \
include/Flock.h \
include/BoidMath.h \
include/Octree.h \
include/SimExport.h
FORMS+= $$PWD/ui/MainWindow.ui
# and add the include dir into the search path for Qt and make
INCLUDEPATH +=./include
# where our exe is going to live (root of project)
DESTDIR=./
# add the glsl shader files
OTHER_FILES+= README.md \
shaders/*.glsl
# were are going to default to a console app
CONFIG += console
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)
}