From ddd9728f5e964b5db0dcf5e9b84353f0c8bbaa0b Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Thu, 15 Nov 2012 11:36:50 +0100 Subject: [PATCH] Added library version --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a7bd508..0369eb63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,8 @@ # vim: set filetype=cmake autoindent tabstop=2 shiftwidth=2 noexpandtab softtabstop=2 nowrap: cmake_minimum_required (VERSION 2.8) project (opm-core) +set (opm-core_MAJOR_VERSION 0) +set (opm-core_MINOR_VERSION 3) enable_language (CXX) # all public header files are together with the source @@ -50,3 +52,7 @@ configure_vars ( # create this library include_directories (${opm-core_INCLUDE_DIRS}) add_library (opmcore SHARED ${opm-core_SOURCES}) +set_target_properties (opmcore PROPERTIES + SOVERSION ${opm-core_MAJOR_VERSION} + VERSION ${opm-core_MAJOR_VERSION}.${opm-core_MINOR_VERSION} + )