summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ----------------------------------------------------------