This repository has been archived by the owner on Sep 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkfx.linux.pri
55 lines (43 loc) · 1.94 KB
/
kfx.linux.pri
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
#------------------------------------------------------------------------------
# Linux specific project include
#------------------------------------------------------------------------------
BuildDir = build
InstallDir = install
ExeFile = $${TARGET}
AssetsDir = assets
DocsDir = docs
AssetsInstallDir = $${InstallDir}/$${AssetsDir}
DocsInstallDir = $${InstallDir}/$${DocsDir}
#------------------------------------------------------------------------------
# Definitions, include paths, libraries and resources
#------------------------------------------------------------------------------
DEFINES += LINUX
INCLUDEPATH += /usr/include
INCLUDEPATH += /usr/local/include/libfreenect
LIBS += -L/usr/local/lib/ -lfreenect
LIBS += -L/usr/local/lib/ -lpng
LIBS += -L/usr/lib/ -lGLEW
#------------------------------------------------------------------------------
# Compiler flags
#------------------------------------------------------------------------------
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CFLAGS_RELEASE += -O3 -funroll-loops -ftree-vectorize -Wno-unused
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3 -funroll-loops -ftree-vectorize -Wno-unused
#------------------------------------------------------------------------------
# Install target and assets.
#------------------------------------------------------------------------------
target.path += $${InstallDir}
INSTALLS += target
InstallAssets.path += $${AssetsInstallDir}
InstallAssets.files += $${AssetsDir}/*
INSTALLS += InstallAssets
InstallDocs.path += $${DocsInstallDir}
InstallDocs.files += $${DocsDir}/*
INSTALLS += InstallDocs
#------------------------------------------------------------------------------
# Clean install files
#------------------------------------------------------------------------------
QMAKE_CLEAN += $$quote(-r $${AssetsInstallDir})
QMAKE_CLEAN += $$quote(-r $${DocsInstallDir})
QMAKE_CLEAN += $$quote(-r $${InstallDir})