This repository was archived by the owner on Jul 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolARModulePopSift.pro
More file actions
88 lines (67 loc) · 2.45 KB
/
SolARModulePopSift.pro
File metadata and controls
88 lines (67 loc) · 2.45 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
## remove Qt dependencies
QT -= core gui
CONFIG -= qt
## global defintions : target lib name, version
INSTALLSUBDIR = SolARBuild
TARGET = SolARModulePopSift
FRAMEWORK = $$TARGET
VERSION=0.9.3
DEFINES += MYVERSION=$${VERSION}
DEFINES += TEMPLATE_LIBRARY
CONFIG += c++1z
include(findremakenrules.pri)
CONFIG(debug,debug|release) {
DEFINES += _DEBUG=1
DEFINES += DEBUG=1
}
CONFIG(release,debug|release) {
DEFINES += _NDEBUG=1
DEFINES += NDEBUG=1
}
DEPENDENCIESCONFIG = shared install_recurse
## Configuration for Visual Studio to install binaries and dependencies. Work also for QT Creator by replacing QMAKE_INSTALL
PROJECTCONFIG = QTVS
#NOTE : CONFIG as staticlib or sharedlib, DEPENDENCIESCONFIG as staticlib or sharedlib, QMAKE_TARGET.arch and PROJECTDEPLOYDIR MUST BE DEFINED BEFORE templatelibconfig.pri inclusion
include ($$shell_quote($$shell_path($${QMAKE_REMAKEN_RULES_ROOT}/templatelibconfig.pri))) # Shell_quote & shell_path required for visual on windows
## DEFINES FOR MSVC/INTEL C++ compilers
msvc {
DEFINES += "_BCOM_SHARED=__declspec(dllexport)"
}
INCLUDEPATH += interfaces/
include (SolARModulePopSift.pri)
unix {
INCLUDEPATH+= /usr/local/cuda/include
QMAKE_CXXFLAGS += -Wignored-qualifiers
# QMAKE_CXX = clang++
# QMAKE_LINK = clang++
}
macx {
DEFINES += _MACOS_TARGET_
QMAKE_MAC_SDK= macosx
QMAKE_CFLAGS += -mmacosx-version-min=10.7 -std=c11 #-x objective-c++
QMAKE_CXXFLAGS += -mmacosx-version-min=10.7 -std=c11 -std=c++11 -O3 -fPIC#-x objective-c++
QMAKE_LFLAGS += -mmacosx-version-min=10.7 -v -lstdc++
LIBS += -lstdc++ -lc -lpthread
}
win32 {
INCLUDEPATH+= $$(CUDA_PATH)/include
DEFINES += WIN64 UNICODE _UNICODE
QMAKE_COMPILER_DEFINES += _WIN64
QMAKE_CXXFLAGS += -wd4250 -wd4251 -wd4244 -wd4275
QMAKE_CXXFLAGS_RELEASE += /O2
QMAKE_CXXFLAGS_DEBUG += /Od
}
header_files.path = $${PROJECTDEPLOYDIR}/interfaces
header_files.files = $$files($${PWD}/interfaces/*.h*)
xpcf_xml_files.path = $${USERHOMEFOLDER}/.xpcf/SolAR
xpcf_xml_files.files=$$files($${PWD}/xpcf*.xml)
INSTALLS += header_files
INSTALLS += xpcf_xml_files
OTHER_FILES += \
packagedependencies.txt \
packagedependencies-win.txt \
packagedependencies-linux.txt
#NOTE : Must be placed at the end of the .pro
include ($$shell_quote($$shell_path($${QMAKE_REMAKEN_RULES_ROOT}/remaken_install_target.pri)))) # Shell_quote & shell_path required for visual on windows
DISTFILES += \
xpcf_SolARModulePopSift_registry.xml