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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
From: Leopold Palomo-Avellaneda <leo@alaxarxa.net>
Date: Wed, 12 Jul 2017 15:01:33 +0200
Subject: Add Debian specific SOVERSION
---
depth_image_proc/CMakeLists.txt | 1 +
image_proc/CMakeLists.txt | 2 ++
image_publisher/CMakeLists.txt | 1 +
image_rotate/CMakeLists.txt | 2 ++
image_view/CMakeLists.txt | 2 ++
stereo_image_proc/CMakeLists.txt | 2 ++
6 files changed, 10 insertions(+)
diff --git a/depth_image_proc/CMakeLists.txt b/depth_image_proc/CMakeLists.txt
index 223c169..906e481 100644
--- a/depth_image_proc/CMakeLists.txt
+++ b/depth_image_proc/CMakeLists.txt
@@ -41,6 +41,7 @@ add_library(${PROJECT_NAME} src/nodelets/convert_metric.cpp
src/nodelets/register.cpp
)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
+set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${depth_image_proc_VERSION} SOVERSION "0d")
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
diff --git a/image_proc/CMakeLists.txt b/image_proc/CMakeLists.txt
index 714a92d..e6e32c7 100644
--- a/image_proc/CMakeLists.txt
+++ b/image_proc/CMakeLists.txt
@@ -33,6 +33,8 @@ add_library(${PROJECT_NAME} src/libimage_proc/processor.cpp
src/nodelets/edge_aware.cpp
src/nodelets/crop_non_zero.cpp
)
+set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${image_proc_VERSION} SOVERSION "0d")
+
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_gencfg)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${OpenCV_LIBRARIES})
diff --git a/image_publisher/CMakeLists.txt b/image_publisher/CMakeLists.txt
index b0865d4..1039e9e 100644
--- a/image_publisher/CMakeLists.txt
+++ b/image_publisher/CMakeLists.txt
@@ -19,6 +19,7 @@ catkin_package()
include_directories(${catkin_INCLUDE_DIRS})
add_library(${PROJECT_NAME} SHARED src/nodelet/image_publisher_nodelet.cpp)
+set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${image_publisher_VERSION} SOVERSION "0d")
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_gencfg)
install(TARGETS image_publisher
diff --git a/image_rotate/CMakeLists.txt b/image_rotate/CMakeLists.txt
index f892597..0bc08e0 100644
--- a/image_rotate/CMakeLists.txt
+++ b/image_rotate/CMakeLists.txt
@@ -14,6 +14,8 @@ find_package(OpenCV REQUIRED core imgproc)
include_directories(${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
add_library(${PROJECT_NAME} SHARED src/nodelet/image_rotate_nodelet.cpp)
+set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${image_rotate_VERSION} SOVERSION "0d")
+
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_gencfg)
install(TARGETS image_rotate
diff --git a/image_view/CMakeLists.txt b/image_view/CMakeLists.txt
index 551fe9b..bca2de8 100644
--- a/image_view/CMakeLists.txt
+++ b/image_view/CMakeLists.txt
@@ -44,6 +44,8 @@ target_link_libraries(image_view ${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
${Boost_LIBRARIES}
)
+set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${image_view_VERSION} SOVERSION "0d")
+
add_dependencies(image_view ${PROJECT_NAME}_gencfg)
install(TARGETS image_view
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
diff --git a/stereo_image_proc/CMakeLists.txt b/stereo_image_proc/CMakeLists.txt
index 71a283a..cf763a9 100644
--- a/stereo_image_proc/CMakeLists.txt
+++ b/stereo_image_proc/CMakeLists.txt
@@ -23,6 +23,8 @@ add_definitions(-DOPENCV_TRAITS_ENABLE_DEPRECATED)
# Nodelet library
add_library(${PROJECT_NAME} src/libstereo_image_proc/processor.cpp src/nodelets/disparity.cpp src/nodelets/point_cloud2.cpp)
+set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${stereo_image_proc_VERSION} SOVERSION "0d")
+
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
)
|