This repository was archived by the owner on Jun 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSolARModuleNonFreeOpenCV.pro
More file actions
123 lines (96 loc) · 3.54 KB
/
SolARModuleNonFreeOpenCV.pro
File metadata and controls
123 lines (96 loc) · 3.54 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
## remove Qt dependencies
QT -= core gui
CONFIG -= qt
QMAKE_PROJECT_DEPTH = 0
## global definitions : target lib name, version
INSTALLSUBDIR = SolARBuild
TARGET = SolARModuleNonFreeOpenCV
FRAMEWORK = $$TARGET
VERSION=0.11.0
DEFINES += MYVERSION=$${VERSION}
DEFINES += TEMPLATE_LIBRARY
CONFIG += c++1z
DEFINES += WITHOUTCUDA
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/
HEADERS += interfaces/SolAROpencvNonFreeAPI.h \
interfaces/SolARDescriptorsExtractorSURF64Opencv.h \
interfaces/SolARDescriptorsExtractorSURF128Opencv.h \
interfaces/SolARFiducialMarkerPoseEstimatorNonFreeOpencv.h \
interfaces/SolARKeypointDetectorNonFreeOpencv.h \
interfaces/SolARModuleNonFreeOpencv_traits.h \
interfaces/SolARNonFreeOpenCVHelper.h
SOURCES += src/SolARModuleNonFreeOpencv.cpp \
src/SolARDescriptorsExtractorSURF64Opencv.cpp \
src/SolARDescriptorsExtractorSURF128Opencv.cpp \
src/SolARFiducialMarkerPoseEstimatorNonFreeOpencv.cpp \
src/SolARKeypointDetectorNonFreeOpencv.cpp \
src/SolARNonFreeOpenCVHelper.cpp
unix {
# Avoids adding install steps manually. To be commented to have a better control over them.
QMAKE_POST_LINK += "make install install_deps"
}
unix:!android {
QMAKE_CXXFLAGS += -Wignored-qualifiers
# QMAKE_LINK=clang++
# QMAKE_CXX = clang++
}
linux {
QMAKE_LFLAGS += -ldl
LIBS += -L/home/linuxbrew/.linuxbrew/lib # temporary fix caused by grpc with -lre2 ... without -L in grpc.pc
}
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 {
DEFINES += WIN64 UNICODE _UNICODE
QMAKE_COMPILER_DEFINES += _WIN64
QMAKE_CXXFLAGS += -wd4250 -wd4251 -wd4244 -wd4275
QMAKE_CXXFLAGS_DEBUG += /Od
QMAKE_CXXFLAGS_RELEASE += /O2
}
android {
# QMAKE_LFLAGS += -nostdlib++
ANDROID_ABIS="arm64-v8a"
}
header_files.path = $${PROJECTDEPLOYDIR}/interfaces
header_files.files = $$files($${PWD}/interfaces/*.h*)
xpcf_xml_files.path = $$(HOME)/.xpcf/SolAR
xpcf_xml_files.files=$$files($${PWD}/xpcf*.xml)
INSTALLS += header_files
INSTALLS += xpcf_xml_files
OTHER_FILES += \
packagedependencies.txt \
packagedependencies-linux.txt \
packagedependencies-win.txt \
packagedependencies-mac.txt \
packagedependencies-android.txt \
extra-packages.txt \
extra-packages-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
s
DISTFILES += \
xpcf_SolARModuleNonFreeOpenCV_registry.xml