vtkedge (0.2.0~20110819-1) sharedlibs_version.patch

Summary

 CMakeLists.txt                 |    8 ++++++++
 Common/CMakeLists.txt          |    1 +
 Filtering/CMakeLists.txt       |    1 +
 Graphics/CMakeLists.txt        |    1 +
 Hybrid/CMakeLists.txt          |    1 +
 IO/CMakeLists.txt              |    1 +
 Imaging/CMakeLists.txt         |    1 +
 Rendering/CMakeLists.txt       |    1 +
 VolumeRendering/CMakeLists.txt |    1 +
 Widgets/CMakeLists.txt         |    1 +
 10 files changed, 17 insertions(+)

    
download this patch

Patch contents

Index: vtkedge-0.1.0~20110403/CMakeLists.txt
===================================================================
--- vtkedge-0.1.0~20110403.orig/CMakeLists.txt	2010-04-20 22:41:44.000000000 +0200
+++ vtkedge-0.1.0~20110403/CMakeLists.txt	2011-04-03 21:53:01.000000000 +0200
@@ -44,6 +44,14 @@
 set(VTKEdge_VERSION_BUILD 0)
 set(VTKEdge_VERSION
   "${VTKEdge_VERSION_MAJOR}.${VTKEdge_VERSION_MINOR}.${VTKEdge_VERSION_BUILD}")
+set(VTKEdge_API_VERSION
+  # This is ITK/VTK/GDCM style where SOVERSION is two numbers...
+  "${VTKEdge_VERSION_MAJOR}.${VTKEdge_VERSION_MINOR}"
+  )
+SET(VTKEdge_LIBRARY_PROPERTIES ${VTKEdge_LIBRARY_PROPERTIES}
+  VERSION   "${VTKEdge_VERSION}"
+  SOVERSION "${VTKEdge_API_VERSION}"
+)
 
 # -----------------------------------------------------------------------------
 # Setup the output paths
Index: vtkedge-0.1.0~20110403/Common/CMakeLists.txt
===================================================================
--- vtkedge-0.1.0~20110403.orig/Common/CMakeLists.txt	2010-05-17 21:03:25.000000000 +0200
+++ vtkedge-0.1.0~20110403/Common/CMakeLists.txt	2011-04-03 21:53:01.000000000 +0200
@@ -123,6 +123,7 @@
 # -----------------------------------------------------------------------------
 add_library(vtkKWECommon ${KIT_SRCS})
 target_link_libraries(vtkKWECommon ${KIT_LIBS})
+set_target_properties(vtkKWECommon PROPERTIES ${VTKEdge_LIBRARY_PROPERTIES} LINK_INTERFACE_LIBRARIES "")
 
 # -----------------------------------------------------------------------------
 # Testing
Index: vtkedge-0.1.0~20110403/Filtering/CMakeLists.txt
===================================================================
--- vtkedge-0.1.0~20110403.orig/Filtering/CMakeLists.txt	2010-04-20 22:41:44.000000000 +0200
+++ vtkedge-0.1.0~20110403/Filtering/CMakeLists.txt	2011-04-03 21:53:01.000000000 +0200
@@ -73,6 +73,7 @@
 # -----------------------------------------------------------------------------
 add_library(vtkKWEFiltering ${KIT_SRCS} ${KIT_EXTRA_SRCS} ${FilteringInstantiatorFiles})
 target_link_libraries(vtkKWEFiltering ${KIT_LIBS})
+set_target_properties(vtkKWEFiltering PROPERTIES ${VTKEdge_LIBRARY_PROPERTIES} LINK_INTERFACE_LIBRARIES "")
 
 
 # -----------------------------------------------------------------------------
Index: vtkedge-0.1.0~20110403/Graphics/CMakeLists.txt
===================================================================
--- vtkedge-0.1.0~20110403.orig/Graphics/CMakeLists.txt	2010-04-20 22:41:44.000000000 +0200
+++ vtkedge-0.1.0~20110403/Graphics/CMakeLists.txt	2011-04-03 21:53:01.000000000 +0200
@@ -37,6 +37,7 @@
 # -----------------------------------------------------------------------------
 add_library(vtkKWEGraphics ${KIT_SRCS})
 target_link_libraries(vtkKWEGraphics ${KIT_LIBS})
+set_target_properties(vtkKWEGraphics PROPERTIES ${VTKEdge_LIBRARY_PROPERTIES} LINK_INTERFACE_LIBRARIES "")
 
 # -----------------------------------------------------------------------------
 # Testing
Index: vtkedge-0.1.0~20110403/Hybrid/CMakeLists.txt
===================================================================
--- vtkedge-0.1.0~20110403.orig/Hybrid/CMakeLists.txt	2010-05-05 18:12:17.000000000 +0200
+++ vtkedge-0.1.0~20110403/Hybrid/CMakeLists.txt	2011-04-03 21:53:01.000000000 +0200
@@ -75,6 +75,7 @@
 # -----------------------------------------------------------------------------
 add_library(vtkKWEHybrid ${KIT_SRCS} ${KIT_EXTRA_SRCS})
 target_link_libraries(vtkKWEHybrid ${KIT_LIBS})
+set_target_properties(vtkKWEHybrid PROPERTIES ${VTKEdge_LIBRARY_PROPERTIES} LINK_INTERFACE_LIBRARIES "")
 
 # -----------------------------------------------------------------------------
 # Testing
Index: vtkedge-0.1.0~20110403/Imaging/CMakeLists.txt
===================================================================
--- vtkedge-0.1.0~20110403.orig/Imaging/CMakeLists.txt	2010-04-20 22:41:44.000000000 +0200
+++ vtkedge-0.1.0~20110403/Imaging/CMakeLists.txt	2011-04-03 21:53:01.000000000 +0200
@@ -61,6 +61,7 @@
 if(KIT_CUDA_C_SOURCES OR KIT_SRCS OR KIT_CUDA_DEPENDANT_SRCS)
   add_library(vtkKWEImaging ${KIT_CUDA_C_SOURCES} ${KIT_SRCS} ${KIT_CUDA_DEPENDANT_SRCS})
   target_link_libraries(vtkKWEImaging ${KIT_LIBS} ${CUDA_LIBRARIES} ${CUDA_CUTIL_LIBRARY})
+  set_target_properties(vtkKWEImaging PROPERTIES ${VTKEdge_LIBRARY_PROPERTIES} LINK_INTERFACE_LIBRARIES "")
 endif(KIT_CUDA_C_SOURCES OR KIT_SRCS OR KIT_CUDA_DEPENDANT_SRCS)
 
 # -----------------------------------------------------------------------------
Index: vtkedge-0.1.0~20110403/IO/CMakeLists.txt
===================================================================
--- vtkedge-0.1.0~20110403.orig/IO/CMakeLists.txt	2010-04-20 22:41:44.000000000 +0200
+++ vtkedge-0.1.0~20110403/IO/CMakeLists.txt	2011-04-03 21:53:01.000000000 +0200
@@ -73,6 +73,7 @@
 # -----------------------------------------------------------------------------
 add_library(vtkKWEIO ${KIT_SRCS} ${KIT_EXTRA_SRCS})
 target_link_libraries(vtkKWEIO ${KIT_LIBS})
+set_target_properties(vtkKWEIO PROPERTIES ${VTKEdge_LIBRARY_PROPERTIES} LINK_INTERFACE_LIBRARIES "")
 
 # -----------------------------------------------------------------------------
 # Testing
Index: vtkedge-0.1.0~20110403/Rendering/CMakeLists.txt
===================================================================
--- vtkedge-0.1.0~20110403.orig/Rendering/CMakeLists.txt	2010-06-30 21:57:03.000000000 +0200
+++ vtkedge-0.1.0~20110403/Rendering/CMakeLists.txt	2011-04-03 21:53:01.000000000 +0200
@@ -70,6 +70,7 @@
 # -----------------------------------------------------------------------------
 add_library(vtkKWERendering ${KIT_SRCS} ${KIT_EXTRA_SRCS})
 target_link_libraries(vtkKWERendering ${KIT_LIBS})
+set_target_properties(vtkKWERendering PROPERTIES ${VTKEdge_LIBRARY_PROPERTIES} LINK_INTERFACE_LIBRARIES "")
 
 # -----------------------------------------------------------------------------
 # Testing
Index: vtkedge-0.1.0~20110403/VolumeRendering/CMakeLists.txt
===================================================================
--- vtkedge-0.1.0~20110403.orig/VolumeRendering/CMakeLists.txt	2010-05-17 21:03:25.000000000 +0200
+++ vtkedge-0.1.0~20110403/VolumeRendering/CMakeLists.txt	2011-04-03 21:53:01.000000000 +0200
@@ -68,6 +68,7 @@
 # -----------------------------------------------------------------------------
 add_library(vtkKWEVolumeRendering ${KIT_SRCS} ${KIT_OpenGL_SRCS} ${KIT_EXTRA_SRCS})
 target_link_libraries(vtkKWEVolumeRendering ${KIT_LIBS})
+set_target_properties(vtkKWEVolumeRendering PROPERTIES ${VTKEdge_LIBRARY_PROPERTIES} LINK_INTERFACE_LIBRARIES "")
 
 # -----------------------------------------------------------------------------
 # Testing
Index: vtkedge-0.1.0~20110403/Widgets/CMakeLists.txt
===================================================================
--- vtkedge-0.1.0~20110403.orig/Widgets/CMakeLists.txt	2010-12-14 19:44:17.000000000 +0100
+++ vtkedge-0.1.0~20110403/Widgets/CMakeLists.txt	2011-04-03 21:53:01.000000000 +0200
@@ -138,6 +138,7 @@
 ENDIF(VTKEdge_USE_ITK)
 add_library(vtkKWEWidgets ${KIT_SRCS})
 target_link_libraries(vtkKWEWidgets ${KIT_LIBS})
+set_target_properties(vtkKWEWidgets PROPERTIES ${VTKEdge_LIBRARY_PROPERTIES} LINK_INTERFACE_LIBRARIES "")
 
 # --------------------------------------------------------------------------
 # Testing