-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
52 lines (45 loc) · 1.24 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
cmake_minimum_required(VERSION 3.10)
project(HDUS)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_BUILD_TYPE Debug)
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(fmt REQUIRED)
include_directories(
${OpenCV_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${EIGEN3_INCLUDE_DIRS}
)
include_directories(
./AngleSolver/include
./ArmorDetector/include
./HKCamera/include
./SerialPort/include
./Processor/include
./general
./Thread
./
)
file(GLOB_RECURSE source
AngleSolver/src/*.*
ArmorDetector/src/*.*
HKCamera/src/*.*
SerialPort/src/*.*
general/*.*
Thread/*.*
Processor/src/*.*
)
add_executable(HDUS ./main.cpp ${source})
target_link_libraries(
HDUS
fmt::fmt
${OpenCV_LIBS}
${Eigen3_LIBRARIES}
${CMAKE_CURRENT_SOURCE_DIR}/HKCamera/libs/linux/libFormatConversion.so
${CMAKE_CURRENT_SOURCE_DIR}/HKCamera/libs/linux/libMediaProcess.so
${CMAKE_CURRENT_SOURCE_DIR}/HKCamera/libs/linux/libMvCameraControl.so
${CMAKE_CURRENT_SOURCE_DIR}/HKCamera/libs/linux/libMVRender.so
${CMAKE_CURRENT_SOURCE_DIR}/HKCamera/libs/linux/libMvUsb3vTL.so
-lpthread -lm
)