-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
49 lines (41 loc) · 1004 Bytes
/
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
cmake_minimum_required(VERSION 3.5)
project(AutoAim)
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_PREFIX_PATH "/usr/local/opencv/opencv-4.5.1")
find_package(OpenCV 4 REQUIRED)
find_package(Boost REQUIRED COMPONENTS system filesystem)
add_subdirectory(src/armor_detector)
add_subdirectory(src/pose_estimate)
add_subdirectory(src/driver)
add_subdirectory(src/utils)
include_directories(
src/
src/utils/include
/usr/include/eigen3
${Boost_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
add_executable(AutoAim
src/AutoAim.cpp
)
add_executable(train
src/trainSVM.cpp
)
target_link_libraries(AutoAim
utils
driver
armor_detector
${OpenCV_LIBS}
-lboost_system
-lboost_filesystem
-lpthread
)
target_link_libraries(train
utils
driver
armor_detector
${Boost_LIBRARIES}
${OpenCV_LIBS}
)