-
Notifications
You must be signed in to change notification settings - Fork 1
/
PrivacyProject.pro
76 lines (61 loc) · 2.18 KB
/
PrivacyProject.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
TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS += src/CoreLib \
src/PrivacyFilterLib \
src/DatasetBrowser \
src/DatasetParser \
src/PrivacyFilters \
src/PersonReid \
src/PrivacyEditor
# Install script
DESTDIR = $$OUT_PWD/bin
# Ogre Resources
Resources.path = $$DESTDIR/resources
Resources.files = $$PWD/OgreData/*
unix:macx {
# Config Files
Config.path = $$DESTDIR
Config.files = $$PWD/config/linux/*
# OpenNI dll
OpenNI.path = $$DESTDIR
OpenNI.files = $$(OPENNI2_REDIST)/libOpenNI2.dylib $$(OPENNI2_REDIST)/OpenNI2
INSTALLS += OpenNI
}
# Install Linux Files
unix:!macx {
# Config Files
Config.path = $$DESTDIR
Config.files = $$PWD/config/linux/*
}
# Install Win Files
win32 {
# Config Files
Config.path = $$DESTDIR
CONFIG(release, debug|release):Config.files = $$PWD/config/win/release/*
else:CONFIG(debug, debug|release):Config.files = $$PWD/config/win/debug/*
# OpenCV dll
OpenCV.path = $$DESTDIR
CONFIG(release, debug|release):OpenCV.files = $$(OPENCV2_BIN)/opencv_core2410.dll $$(OPENCV2_BIN)/opencv_imgproc2410.dll $$(OPENCV2_BIN)/opencv_highgui2410.dll $$(OPENCV2_BIN)/opencv_objdetect2410.dll $$(OPENCV2_BIN)/opencv_photo2410.dll
else:CONFIG(debug, debug|release):OpenCV.files = $$(OPENCV2_BIN)/opencv_core2410d.dll $$(OPENCV2_BIN)/opencv_imgproc2410d.dll $$(OPENCV2_BIN)/opencv_highgui2410d.dll $$(OPENCV2_BIN)/opencv_objdetect2410d.dll $$(OPENCV2_BIN)/opencv_photo2410d.dll
# Ogre dll
Ogre.path = $$DESTDIR
CONFIG(release, debug|release) {
OGRE_DIR = $$(OGRE_HOME)\bin\release
Ogre.files = $$OGRE_DIR/OgreMain.dll $$OGRE_DIR/RenderSystem_GL.dll
}
else:CONFIG(debug, debug|release) {
OGRE_DIR = $$(OGRE_HOME)\bin\debug
Ogre.files = $$OGRE_DIR/OgreMain_d.dll $$OGRE_DIR/RenderSystem_GL_d.dll
}
# OpenNI dll
win32:OPENNI_DIR = $$(OPENNI2_REDIST)
win32:OpenNI.path = $$DESTDIR
win32:OpenNI.files = $$OPENNI_DIR/OpenNI2.dll $$OPENNI_DIR/OpenNI2
# NiTE dll
NITE_DIR = $$(NITE2_REDIST)
NiTE.path = $$DESTDIR
NiTE.files = $$NITE_DIR/NiTE2.dll
INSTALLS += OpenCV Ogre OpenNI NiTE
}
# make install
INSTALLS += Resources Config