-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
62 lines (53 loc) · 1.41 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
cmake_minimum_required(VERSION 3.0.2)
project(insta360_ros_driver)
find_package(catkin REQUIRED COMPONENTS
camera_info_manager
cv_bridge
image_transport
roscpp
sensor_msgs
std_msgs
std_srvs
rospy
)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
find_package(OpenCV REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(AVCODEC REQUIRED libavcodec)
pkg_check_modules(AVFORMAT REQUIRED libavformat)
pkg_check_modules(AVUTIL REQUIRED libavutil)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES lib
CATKIN_DEPENDS
# DEPENDS system_lib
)
include_directories(
# include
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${AVCODEC_INCLUDE_DIRS}
${AVFORMAT_INCLUDE_DIRS}
${AVUTIL_INCLUDE_DIRS}
)
link_directories(
${PROJECT_SOURCE_DIR}/lib
${PROJECT_SOURCE_DIR}/include
)
add_executable(${PROJECT_NAME} src/main.cpp)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${OpenCV_LIBS} CameraSDK ${AVCODEC_LIBRARIES} ${AVFORMAT_LIBRARIES} ${AVUTIL_LIBRARIES})
target_include_directories(${PROJECT_NAME} PUBLIC
"${PROJECT_SOURCE_DIR}/include"
)
catkin_package()
catkin_python_setup()
catkin_install_python(PROGRAMS
scripts/compression.py
scripts/undistortion.py
scripts/live_processing.py
scripts/get_images.py
scripts/record.py
src/${PROJECT_NAME}/directory_verification.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)