summaryrefslogtreecommitdiff
path: root/0-irobot-create-gazebo-plugins-fix-ffmpeg.patch
blob: 408f9a483124276f02b74b7bec59985926219a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -Naur ros-humble-irobot-create-gazebo-plugins-2.0.0/CMakeLists.txt ros-humble-irobot-create-gazebo-plugins-2.0.0_new/CMakeLists.txt
--- ros-humble-irobot-create-gazebo-plugins-2.0.0/CMakeLists.txt	2023-01-20 02:43:13.000000000 +0800
+++ ros-humble-irobot-create-gazebo-plugins-2.0.0_new/CMakeLists.txt	2023-11-20 21:00:43.000000000 +0800
@@ -25,6 +25,14 @@
   return()
 endif()
 
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(FFMPEG REQUIRED IMPORTED_TARGET libavcodec)
+
+include_directories(
+  include
+  ${FFMPEG_INCLUDE_DIRS}
+)
+
 link_directories(${gazebo_dev_LIBRARY_DIRS})
 
 # Add libraries