forked from NailinLiao/Lightglue_Macth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
76 lines (62 loc) · 1.7 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
cmake_minimum_required(VERSION 3.18)
project(lightglue_Macth)
set(CMAKE_CXX_STANDARD 17)
# 添加OpenCV查找模块
find_package(OpenCV REQUIRED core highgui imgproc features2d videoio imgcodecs calib3d)
if (NOT OpenCV_FOUND)
message(FATAL_ERROR "OpenCV not found.")
endif ()
include(env/3rdparty_rk3588.cmake)
include_directories(include ${OpenCV_INCLUDE_DIRS})
# 收集源文件
file(GLOB_RECURSE ORB_SRC src/*.cpp src/*.cc)
file(GLOB_RECURSE ORB_HEAD include/*.hpp include/*.h)
#add_executable( main.cpp src/ORB_WORKER.cpp)
add_executable(lightglue_Macth_main
${ORB_SRC}
${ORB_HEAD}
${CORE_LIB_SRC}
${CORE_LIB_HEAD}
${OPENCV_LIB_SRC}
${OPENCV_LIB_HEAD}
main.cpp
)
target_link_libraries(lightglue_Macth_main
pthread
${FMT_LIBRARY}
${BOOST_LIBRARY}
${RGA_LIBRARY}
${OpenCV_LIBS}
${RKNN_LIBRARY}
${FFTW_LIBRARY}
${FREETYPE_LIBRARY}
${MPP_LIBRARY}
${MPPENCODER_LIBRARY}
${RKAIQ_LIBRARY}
${DB_LIBRARY}
)
add_executable(lightglue_Macth_Scaling
${ORB_SRC}
${ORB_HEAD}
${CORE_LIB_SRC}
${CORE_LIB_HEAD}
${OPENCV_LIB_SRC}
${OPENCV_LIB_HEAD}
Scaling.cpp
)
target_link_libraries(lightglue_Macth_Scaling
pthread
${FMT_LIBRARY}
${BOOST_LIBRARY}
${RGA_LIBRARY}
${OpenCV_LIBS}
${RKNN_LIBRARY}
${FFTW_LIBRARY}
${FREETYPE_LIBRARY}
${MPP_LIBRARY}
${MPPENCODER_LIBRARY}
${RKAIQ_LIBRARY}
${DB_LIBRARY}
)
## 链接OpenCV库到目标可执行文件
#target_link_libraries(ORB_Jitter PRIVATE ${OpenCV_LIBS})