summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-12-15 09:40:24 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-12-15 09:40:24 +0100
commitab8ac8570526fe9f8696045582ea93b4067b89e9 (patch)
treef57f5939abeecc2f3ccba9b349664768a1c9fd82
parenta8f1a15fb5982df6e7784db676f42d0d09f6e20a (diff)
downloaduca-ab8ac8570526fe9f8696045582ea93b4067b89e9.tar.gz
uca-ab8ac8570526fe9f8696045582ea93b4067b89e9.tar.bz2
uca-ab8ac8570526fe9f8696045582ea93b4067b89e9.tar.xz
uca-ab8ac8570526fe9f8696045582ea93b4067b89e9.zip
Add: soname
-rw-r--r--CMakeLists.txt10
-rw-r--r--src/CMakeLists.txt4
2 files changed, 14 insertions, 0 deletions
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 ----------------------------------------------------------