forked from robocin/vss-vision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
128 lines (113 loc) · 4 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
cmake_minimum_required(VERSION 3.16)
project(VSS-VISION)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(EXECUTABLE_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/src")
set(SOURCES
src/main.cpp
src/Utils/Utils.cpp
src/Entity/Entity.cpp
src/Utils/kalmanfilter.cpp
src/Utils/matrix2d.cpp
src/Vision/Vision.cpp
src/Vision/PositionProcessing/PositionProcessing.cpp
src/Vision/ImageProcessing/ImageProcessing.cpp
src/Vision/ImageProcessing/LUTSegmentation.cpp
src/Vision/ImageProcessing/MaggicSegmentation.cpp
src/Vision/ImageProcessing/WarpCorrection.cpp
src/Vision/ImageProcessing/OpenCV/connectedcomponents.cpp
src/visionconfigdialog.cpp
src/fieldpointscalibratedialog.cpp
src/segmentationconfigdialog.cpp
src/cameraconfigurationdialog.cpp
src/Logging/logging.cpp
src/Vision/ColorSpace.cpp
src/maggicsegmentationdialog.cpp
src/Timer/Timer.cpp
src/visionthread.cpp
src/CameraManager/CameraManager.cpp
src/CameraManager/CameraThread.cpp
src/Vision/PositionProcessing/runlengthencoding.cpp
src/Vision/PositionProcessing/BlobDetection.cpp
src/TBBThreadManager.cpp
src/Field/Field.cpp
src/GameInfo/GameInfo.cpp
src/Utils/Global.cpp
src/Windows/MainVSSWindow.cpp
src/Utils/Geometry.cpp
src/Utils/Draw.cpp
src/Utils/EnumsAndConstants.cpp
src/Windows/RobotWidget.cpp
src/trackconfigdialog.cpp
src/Network/Network.cpp
src/Network/visionServer/server.cpp
)
set(HEADERS
src/Entity/Entity.h
src/Utils/Utils.h
src/Utils/kalmanfilter.h
src/Utils/matrix2d.h
src/Vision/Vision.h
src/Vision/PositionProcessing/PositionProcessing.h
src/Vision/ImageProcessing/ImageProcessing.h
src/Vision/ImageProcessing/LUTSegmentation.h
src/Vision/ImageProcessing/MaggicSegmentation.h
src/Vision/ImageProcessing/WarpCorrection.h
src/Vision/ColorSpace.h
src/Vision/ImageProcessing/OpenCV/connectedcomponents.hpp
src/visionconfigdialog.h
src/fieldpointscalibratedialog.h
src/segmentationconfigdialog.h
src/cameraconfigurationdialog.h
src/Logging/logging.h
src/maggicsegmentationdialog.h
src/Timer/Timer.h
src/visionthread.h
src/CameraManager/CameraManager.h
src/CameraManager/CameraThread.h
src/Vision/PositionProcessing/runlengthencoding.h
src/Vision/PositionProcessing/BlobDetection.h
src/TBBThreadManager.h
src/Utils/Types.h
src/Field/Field.h
src/Utils/EnumsAndConstants.h
src/GameInfo/GameInfo.h
src/Utils/Defines.h
src/Utils/Global.h
src/Windows/MainVSSWindow.h
src/Utils/Geometry.h
src/Utils/Draw.h
src/Windows/RobotWidget.h
src/Utils/BetterEnum.h
src/trackconfigdialog.h
src/Windows/FileConstants.h
src/Network/Network.h
src/Network/visionServer/server.h
)
set(RESOURCES
src/image.qrc
src/iconTools/icontools.qrc
)
set(PROTOS
src/Network/protobuf/proto/messages_robocup_ssl_detection.proto
src/Network/protobuf/proto/messages_robocup_ssl_geometry.proto
src/Network/protobuf/proto/wrapper.proto
)
find_package(Protobuf REQUIRED)
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ${PROTOS})
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS} ${RESOURCES} ${PROTO_SRCS} ${PROTO_HDRS})
target_include_directories(${PROJECT_NAME} PUBLIC "${PROJECT_SOURCE_DIR}/src")
target_include_directories(${PROJECT_NAME} PUBLIC "${PROJECT_SOURCE_DIR}/include")
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
find_package(Qt5 REQUIRED COMPONENTS Core Widgets Gui Network)
target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Widgets Qt5::Gui Qt5::Network)
find_package(OpenCV REQUIRED)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})
find_package(TBB REQUIRED)
target_link_libraries(${PROJECT_NAME} TBB::tbb)
find_package(SFML REQUIRED COMPONENTS network system)
target_link_libraries(${PROJECT_NAME} sfml-network sfml-system)
target_link_libraries(${PROJECT_NAME} ${Protobuf_LIBRARIES})