-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
77 lines (57 loc) · 1.66 KB
/
CMakeLists.txt
File metadata and controls
77 lines (57 loc) · 1.66 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
cmake_minimum_required(VERSION 3.25)
project(detection_pot VERSION 1.0.1)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
find_package(PkgConfig REQUIRED)
pkg_check_modules(TCPSocket REQUIRED TCPSocket)
find_package(Qt6 COMPONENTS
Core
Network
REQUIRED)
set(COMMON_SOURCES
utils/utils.h
utils/utils.cpp
)
set(calibrationSources
${COMMON_SOURCES}
calibration.cpp
)
set(calibrationCharucoSources
${COMMON_SOURCES}
calibrationCharuco.cpp
)
add_executable(calibration ${calibrationSources})
add_executable(calibrationCharuco ${calibrationCharucoSources})
target_link_libraries( calibration ${OpenCV_LIBS} )
target_link_libraries( calibrationCharuco ${OpenCV_LIBS} )
# Project 2 sources and executable
set(arucoDetectionSources
${COMMON_SOURCES}
arucoDetector.cpp
aruco/ArucoTag.cpp
aruco/ArucoTag.h
aruco/ArucoDetector.cpp
aruco/ArucoDetector.h
tcp/MyClient.cpp
tcp/MyClient.h
)
add_executable(arucoDetector ${arucoDetectionSources})
target_link_libraries( arucoDetector ${OpenCV_LIBS} )
target_link_libraries( arucoDetector Qt6::Core Qt6::Network )
target_link_libraries( arucoDetector TCPSocket )
set(photo
${COMMON_SOURCES}
photo.cpp
)
add_executable(photo ${photo})
target_link_libraries( photo ${OpenCV_LIBS} )
set(createCharucoBoard
${COMMON_SOURCES}
createCharucoBoard.cpp
)
add_executable(createCharucoBoard ${createCharucoBoard})
target_link_libraries( createCharucoBoard ${OpenCV_LIBS} )