-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (37 loc) · 1.53 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
cmake_minimum_required(VERSION 3.16.3)
project(Computer_Vision)
set_target_properties(${TARGET} PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO
)
# set(CMAKE_PREFIX_PATH ${CMAKE_MODULE_PATH} /home/maxon/Libs/root-6.22.08-install/cmake)
# set(CMAKE_PREFIX_PATH /home/maxon/root-6.22.08-install/cmake)
# set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} /home/maxon/root-6.22.08-install/cmake)
# set(CMAKE_CXX_FLAGS_DEBUG_INIT "-Wall")
# set(CMAKE_CXX_FLAGS_RELEASE_INIT "-Wall")
list(APPEND CMAKE_PREFIX_PATH /home/maxon/root-6.22.08-install/cmake)
find_package(OpenCV REQUIRED)
find_package(ROOT REQUIRED)
find_package(Boost REQUIRED)
if(Boost_FOUND)
message(STATUS ${Boost_VERSION} )
endif()
include(${ROOT_USE_FILE})
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${Boost_INCLUDE_DIRS})
add_executable(Computer_Vision Computer_Vision.cpp
Seeker.cpp
Seeker.hpp
Ball.cpp
Ball.hpp
Forecaster.hpp
Forecaster.cpp
Monitoring.hpp
Monitoring.cpp
JSON_Worker.hpp
JSON_Worker.cpp
nlohmann/json.hpp)
target_link_libraries(Computer_Vision ${OpenCV_LIBS})
target_link_libraries(Computer_Vision ${Boost_LIBRARIES})
target_link_libraries(Computer_Vision ${ROOT_LIBRARIES})