-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
130 lines (110 loc) · 2.33 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
# CMakeLists.txt
cmake_minimum_required(VERSION "2.8")
project(8BallPool)
set(CMAKE_CXX_STANDARD 17)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS} include/)
add_library(Ball include/ball.h src/ball.cpp)
add_library(Table include/table.h src/table.cpp)
add_library(Detection include/detection.h src/detection.cpp)
add_library(Segmentation include/segmentation.h src/segmentation.cpp)
add_library(TableOrientation include/tableOrientation.h src/tableOrientation.cpp)
add_library(Transformation include/transformation.h src/transformation.cpp)
add_library(Tracking include/tracking.h src/tracking.cpp)
add_library(Metrics include/metrics.h src/metrics.cpp)
add_library(Utils include/category.h include/constants.h include/util.h src/util_first.cpp src/util_second.cpp include/minimap.h)
target_link_libraries(Ball
${OpenCV_LIBS}
Utils
)
target_link_libraries(Table
${OpenCV_LIBS}
)
target_link_libraries(Detection
${OpenCV_LIBS}
Ball
Table
Utils
)
target_link_libraries(Segmentation
${OpenCV_LIBS}
Ball
Table
Detection
Utils
)
target_link_libraries(TableOrientation
${OpenCV_LIBS}
Ball
Table
Detection
Utils
)
target_link_libraries(Transformation
${OpenCV_LIBS}
Ball
Table
TableOrientation
Utils
)
target_link_libraries(Metrics
${OpenCV_LIBS}
Ball
Table
Utils
)
target_link_libraries(Tracking
${OpenCV_LIBS}
Ball
Table
Metrics
Utils
)
target_link_libraries(Utils
${OpenCV_LIBS}
Table
Ball
)
add_executable(${PROJECT_NAME} src/main.cpp)
target_link_libraries(${PROJECT_NAME}
${OpenCV_LIBS}
Ball
Table
Detection
Segmentation
TableOrientation
Transformation
Tracking
Metrics
Utils
)
add_executable(ShowSegmentationColored src/showSegmentationColored.cpp)
target_link_libraries(ShowSegmentationColored
${OpenCV_LIBS}
Ball
Table
Detection
Segmentation
Utils
Metrics
)
add_executable(TestAllClip src/testAllClip.cpp)
target_link_libraries(TestAllClip
${OpenCV_LIBS}
Ball
Table
Detection
Segmentation
Utils
Metrics
)
add_executable(ComputePerformance src/computePerformance.cpp)
target_link_libraries(ComputePerformance
${OpenCV_LIBS}
Ball
Table
Detection
Segmentation
Utils
Metrics
)