forked from beltegeuse/nori
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnori.pro
72 lines (63 loc) · 1.65 KB
/
nori.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
SOURCES += src/common.cpp \
src/object.cpp \
src/proplist.cpp \
src/diffuse.cpp \
src/isotropic.cpp \
src/microfacet.cpp \
src/scene.cpp \
src/random.cpp \
src/quad.cpp \
src/ao.cpp \
src/chi2test.cpp \
src/ttest.cpp \
src/mesh.cpp \
src/kdtree.cpp \
src/obj.cpp \
src/perspective.cpp \
src/rfilter.cpp \
src/block.cpp \
src/bitmap.cpp \
src/parser.cpp \
src/mirror.cpp \
src/medium.cpp \
src/homogeneous.cpp \
src/heterogeneous.cpp \
src/independent.cpp \
src/main.cpp \
src/gui.cpp
HEADERS += include/nori/*.h
RESOURCES += data/resources.qrc
INCLUDEPATH += include
DEPENDPATH += include data
OBJECTS_DIR = build
RCC_DIR = build
MOC_DIR = build
UI_DIR = build
DESTDIR = .
QT += xml xmlpatterns opengl
macx {
OBJECTIVE_SOURCES += src/support_osx.m
QMAKE_LFLAGS += -framework Cocoa -lobjc
# The following is (strangely) needed for correct exception handling on Mac OS 10.6+
QMAKE_CXXFLAGS_X86_64 -= -mmacosx-version-min=10.5
QMAKE_CXXFLAGS_X86_64 += -mmacosx-version-min=10.6
}
macx | unix {
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS += -O3 -march=nocona -msse2 -mfpmath=sse -fstrict-aliasing
QMAKE_LIBDIR += /usr/local/lib
INCLUDEPATH += /usr/include/OpenEXR /usr/local/include/OpenEXR
LIBS += -lIlmImf -lIex
}
win32 {
# You will have to update the following two lines based on where you have installed OpenEXR
QMAKE_LIBDIR += openexr/lib/x64
INCLUDEPATH += openexr/include
QMAKE_CXXFLAGS += /O2 /fp:fast /GS- /GL /D_SCL_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_WARNINGS
QMAKE_LDFLAGS += /LTCG
SOURCES += src/support_win32.cpp
LIBS += IlmImf.lib Iex.lib IlmThread.lib Imath.lib Half.lib
}
TARGET = nori
CONFIG += console
CONFIG -= app_bundle