-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
133 lines (120 loc) · 7.21 KB
/
CMakeLists.txt
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
124
125
126
127
128
129
130
131
132
133
qt6_add_qml_module(ocvdecoder
URI ocvdecoder
VERSION 1.0
SOURCES
ocvdecoder.h ocvdecoder.cpp
)
if (ANDROID)
target_link_libraries(ocvdecoder
PRIVATE Qt6::Quick Qt6::Multimedia
-static-openmp -fopenmp
)
endif()
if (IOS)
target_link_libraries(ocvdecoder
PRIVATE Qt6::Quick Qt6::Multimedia
)
endif()
target_include_directories(ocvdecoder PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/opencv/include/)
target_link_libraries(ocvdecoder PUBLIC Qt::CorePrivate)
message(PROJECT_SOURCE_DIR=${ANDROID_ABI})
if(IOS)
target_link_libraries(ocvdecoder PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_hfs.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_rgbd.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_aruco.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_highgui.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_saliency.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_bgsegm.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_img_hash.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_shape.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_bioinspired.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_imgcodecs.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_structured_light.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_calib3d.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_imgproc.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_surface_matching.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_ccalib.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_intensity_transform.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_tracking.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_core.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_line_descriptor.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_video.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_dnn.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_mcc.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_videoio.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_dnn_objdetect.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_objdetect.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_videostab.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_dnn_superres.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_optflow.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_wechat_qrcode.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_dpm.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_phase_unwrapping.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_xfeatures2d.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_face.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_photo.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_ximgproc.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_xobjdetect.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_xphoto.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_features2d.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_plot.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_xobjdetect.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_xphoto.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_flann.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_rapid.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_fuzzy.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libopencv_reg.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/ios/libquirc.a
)
endif()
if (ANDROID)
target_link_libraries(ocvdecoder PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_hfs.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_rgbd.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_aruco.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_highgui.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_saliency.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_bgsegm.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_img_hash.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_shape.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_bioinspired.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_imgcodecs.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_structured_light.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_calib3d.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_imgproc.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_surface_matching.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_ccalib.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_intensity_transform.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_tracking.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_core.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_line_descriptor.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_video.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_dnn.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_mcc.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_videoio.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_dnn_objdetect.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_objdetect.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_videostab.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_dnn_superres.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_optflow.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_wechat_qrcode.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_dpm.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_phase_unwrapping.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_xfeatures2d.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_face.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_photo.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_ximgproc.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_xobjdetect.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_xphoto.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_features2d.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_plot.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_xobjdetect.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_xphoto.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_flann.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_rapid.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_fuzzy.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libopencv_reg.a
${CMAKE_CURRENT_SOURCE_DIR}/opencv/android/arm64-v8a/libquirc.a
)
endif()