From ab8ac8570526fe9f8696045582ea93b4067b89e9 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 15 Dec 2011 09:40:24 +0100 Subject: Add: soname --- CMakeLists.txt | 10 ++++++++++ src/CMakeLists.txt | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 485ec8e..71f385f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,11 +1,21 @@ cmake_minimum_required(VERSION 2.8) project(uca C) +set(TARNAME "libuca") set(UCA_VERSION_MAJOR "0") set(UCA_VERSION_MINOR "4") set(UCA_VERSION_PATCH "0") set(UCA_VERSION_STRING "${UCA_VERSION_MAJOR}.${UCA_VERSION_MINOR}.${UCA_VERSION_PATCH}") +set(UCA_API_VERSION "0.1.0") +set(UCA_ABI_VERSION "0.1.0") +set(UCA_ABI_MAJOR_VERSION "0") + +set(PACKAGE_VERSION "${UCA_VERSION_STRING}") +set(PACKAGE_NAME "${TARNAME}") +set(PACKAGE_TARNAME "${TARNAME}") +set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") +set(PACKAGE_BUGREPORT "http://ufo.kit.edu/ufo/newticket") add_subdirectory(src) add_subdirectory(doc) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9f7e9e8..cf736a1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -115,6 +115,10 @@ include_directories( add_definitions("-std=c99 -Wall") add_library(uca SHARED ${uca_SRCS}) +set_target_properties(uca PROPERTIES + VERSION ${UCA_ABI_VERSION} + SOVERSION ${UCA_ABI_MAJOR_VERSION}) + target_link_libraries(uca ${uca_LIBS}) # --- Install target ---------------------------------------------------------- -- cgit v1.2.3