From b8249001e25cded5e6b7723e48dccfe8093c02a5 Mon Sep 17 00:00:00 2001 From: hasufell Date: Wed, 9 May 2012 23:30:29 +0200 Subject: [PATCH] add support for soname/symlink --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4852eb6..494aaca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,13 @@ project(tinyxml2) #CMAKE_BUILD_TOOL +################################ +# set lib version here + +set(GENERIC_LIB_VERSION "1.0.1") +set(GENERIC_LIB_SOVERSION "1") + + ################################ # Add common source @@ -44,6 +51,9 @@ IF(BUILD_STATIC_LIBS) set_target_properties(tinyxml2static PROPERTIES OUTPUT_NAME tinyxml2) ENDIF(BUILD_STATIC_LIBS) add_library(tinyxml2 SHARED tinyxml2.cpp tinyxml2.h) +set_target_properties(tinyxml2 PROPERTIES + VERSION "${GENERIC_LIB_VERSION}" + SOVERSION "${GENERIC_LIB_SOVERSION}") add_executable(test xmltest.cpp) add_dependencies(test tinyxml2)