-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathProject.pro
60 lines (48 loc) · 1.23 KB
/
Project.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
# We want to build an executable
TEMPLATE = app
# Specify where we should store our build files
BUILD_PATH = build
# Name our executable
TARGET = $${BUILD_PATH}/bin/QtFilament
# Specify where to find the ui forms
UI_HEADERS_DIR = ui
UI_DIR = ui
# Specify where to write our object files
OBJECTS_DIR = $${BUILD_PATH}/obj
MOC_DIR = $${BUILD_PATH}/moc
QT += opengl core gui
CONFIG += console c++14
CONFIG -= app_bundle
DEFINES += QT_DEPRECATED_WARNINGS
INCLUDEPATH += \
$$PWD/include \
$$PWD/ui \
$$PWD/materials \
${FILAMENT_PATH}/include
HEADERS += $$files(include/*.h, true)
SOURCES += $$files(src/*.cpp, true)
FORMS += ui/applayout.ui
LIBS += -L${FILAMENT_PATH}/lib/x86_64
LIBS += \
-lfilament \
-lbluegl \
-lbluevk \
-lfilabridge \
-lfilaflat \
-lutils \
-lgeometry \
-lsmol-v \
-ldl \
-pthread
if (!isEmpty(STDLIB_PATH)) {
LIBS += -L${STDLIB_PATH}
}
# Need this to find filament symbols
LIBS += -lc++
macx:{
QMAKE_CXXFLAGS += -x objective-c++
QMAKE_LFLAGS += -framework Metal -framework MetalKit -framework Cocoa -framework CoreFoundation -fobjc-link-runtime
}
# use clang, dont need to
QMAKE_CXXFLAGS += -Ofast -msse -msse2 -msse3 -march=native -funroll-loops
QMAKE_CXXFLAGS += -Wall -Wextra