f3f85ec
commit 548b82c8f035d3f24e1556bcd0c6e431183dece0
639d03a
Author: Till Hofmann <hofmann@kbsg.rwth-aachen.de>
639d03a
Date:   Thu Apr 16 10:46:57 2020 +0200
639d03a
639d03a
    Set all libraries' SOVERSION to 0.1
639d03a
639d03a
diff --git a/CMakeLists.txt b/CMakeLists.txt
f3f85ec
index a232bd6..835d8c3 100644
639d03a
--- a/CMakeLists.txt
639d03a
+++ b/CMakeLists.txt
f3f85ec
@@ -40,6 +40,8 @@ SET (CMAKE_ARCHIVE_OUTPUT_DIRECTORY
f3f85ec
 
f3f85ec
 set(ADDITIONAL_PUBLIC_COMPILE_OPTIONS)
639d03a
 
639d03a
+SET (FREEOPCUA_SOVERSION 0.1)
639d03a
+
639d03a
 # Helper function to generate a pkg-config file for a single library
639d03a
 # Takes the filename of the .pc file as a parameter and replaces all
639d03a
 # placeholders in the .pc.in file with the actual values
f3f85ec
@@ -214,6 +216,7 @@ if (NOT CMAKE_VERSION VERSION_LESS 2.8.12)
639d03a
     target_compile_options(opcuaprotocol PUBLIC ${STATIC_LIBRARY_CXX_FLAGS})
639d03a
 endif ()
f3f85ec
 target_compile_options(opcuaprotocol PUBLIC ${ADDITIONAL_PUBLIC_COMPILE_OPTIONS})
639d03a
+set_target_properties(opcuaprotocol PROPERTIES SOVERSION ${FREEOPCUA_SOVERSION})
639d03a
 target_link_libraries(opcuaprotocol ${ADDITIONAL_LINK_LIBRARIES})
639d03a
 target_include_directories(opcuaprotocol PUBLIC $<INSTALL_INTERFACE:include>)
639d03a
 install(TARGETS opcuaprotocol EXPORT FreeOpcUa
f3f85ec
@@ -291,6 +294,7 @@ SET(opcuacore_SOURCES
639d03a
 )
639d03a
 
639d03a
 add_library(opcuacore ${opcuacore_SOURCES})
639d03a
+set_target_properties(opcuacore PROPERTIES SOVERSION ${FREEOPCUA_SOVERSION})
639d03a
 
639d03a
 if (NOT CMAKE_VERSION VERSION_LESS 2.8.12)
639d03a
     target_compile_options(opcuacore PUBLIC ${STATIC_LIBRARY_CXX_FLAGS})
f3f85ec
@@ -355,6 +359,7 @@ if (BUILD_CLIENT)
639d03a
     src/client/client.cpp
639d03a
     )
639d03a
 
639d03a
+    set_target_properties(opcuaclient PROPERTIES SOVERSION ${FREEOPCUA_SOVERSION})
639d03a
     if (NOT CMAKE_VERSION VERSION_LESS 2.8.12)
639d03a
         target_compile_options(opcuaclient PUBLIC ${STATIC_LIBRARY_CXX_FLAGS})
639d03a
     endif ()
f3f85ec
@@ -458,6 +463,7 @@ if(BUILD_SERVER)
639d03a
         target_compile_options(opcuaserver PUBLIC ${STATIC_LIBRARY_CXX_FLAGS})
639d03a
     endif ()
f3f85ec
     target_compile_options(opcuaserver PUBLIC ${ADDITIONAL_PUBLIC_COMPILE_OPTIONS})
639d03a
+    set_target_properties(opcuaserver PROPERTIES SOVERSION ${FREEOPCUA_SOVERSION})
639d03a
     target_link_libraries(opcuaserver ${ADDITIONAL_LINK_LIBRARIES} opcuacore opcuaprotocol ${Boost_SYSTEM_LIBRARY})
639d03a
     target_include_directories(opcuaserver PUBLIC $<INSTALL_INTERFACE:include>)
639d03a
     install(TARGETS opcuaserver EXPORT FreeOpcUa