From 90f833cfb888f5170e2d0ae61edb2b4ef6ac9981 Mon Sep 17 00:00:00 2001
From: Frank Gaede <frank.gaede@desy.de>
Date: Wed, 15 May 2013 13:49:57 +0000
Subject: [PATCH]  - added version numbers to the CMake project    and the
 libraries

 - prepared for a v00-01 test release
---
 CMakeLists.txt        | 11 +++++++++++
 DDCore/CMakeLists.txt |  7 ++++++-
 DDG4/CMakeLists.txt   |  4 ++++
 doc/release.notes     |  9 +++++++++
 4 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 67a43c0b0..781367b21 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,17 @@
 cmake_minimum_required(VERSION 2.8.3 FATAL_ERROR)
 
 project(DD4hep)
+
+# project version
+SET( DD4hep_VERSION_MAJOR 0 )
+SET( DD4hep_VERSION_MINOR 1 )
+SET( DD4hep_VERSION_PATCH 0 )
+
+SET( DD4hep_VERSION "${DD4hep_VERSION_MAJOR}.${DD4hep_VERSION_MINOR}" )
+SET( DD4hep_SOVERSION "${DD4hep_VERSION_MAJOR}.${DD4hep_VERSION_MINOR}" )
+
+
+
 set(CMAKE_MODULE_PATH      ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) 
 set(LIBRARY_OUTPUT_PATH    ${PROJECT_BINARY_DIR}/lib)
 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
diff --git a/DDCore/CMakeLists.txt b/DDCore/CMakeLists.txt
index 7148aa176..d3aa9f2f9 100644
--- a/DDCore/CMakeLists.txt
+++ b/DDCore/CMakeLists.txt
@@ -20,11 +20,16 @@ endif()
 
 include(DD4hep_XML_setup)
 
-add_library(DD4hepCore SHARED ${sources})
+add_library(DD4hepCore SHARED ${sources} )
+
 target_link_libraries(DD4hepCore ${ROOT_LIBRARIES} ${XML_LIBRARIES} Geom Reflex ${libraries})
 
 add_library(DD4hepPlugins SHARED ${plugin_sources})
 target_link_libraries(DD4hepPlugins ${ROOT_LIBRARIES} ${XML_LIBRARIES} DD4hepCore Geom Reflex ${libraries})
+
+
+SET_TARGET_PROPERTIES( DD4hepCore DD4hepPlugins PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION})
+
 #---Rootmap generation--------------------------------------------------------------
 dd4hep_generate_rootmap(DD4hepPlugins)
 #dd4hep_install_library(DD4hepPlugins)
diff --git a/DDG4/CMakeLists.txt b/DDG4/CMakeLists.txt
index dfdc2993d..ed0fe8dd2 100644
--- a/DDG4/CMakeLists.txt
+++ b/DDG4/CMakeLists.txt
@@ -25,6 +25,10 @@ if(NOT DD4HEP_USE_XERCESC)
 endif()
 add_library(DD4hepG4 SHARED ${sources})
 target_link_libraries(DD4hepG4 DD4hepCore ${ROOT_LIBRARIES} Reflex ${Geant4_LIBRARIES})
+
+SET_TARGET_PROPERTIES( DD4hepG4 PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION})
+
+
 dd4hep_generate_rootmap(DD4hepG4)
 
 #--- install target-------------------------------------
diff --git a/doc/release.notes b/doc/release.notes
index aa0ea0aa2..1aca76ff0 100644
--- a/doc/release.notes
+++ b/doc/release.notes
@@ -1,6 +1,15 @@
 DD4hep  ----  Release Notes
 =================================
 
+ --------
+| v00-01 |
+ --------
+    
+    - first beta release...
+
+
+
+
 
 2013/20/03    Markus Frank
 --------------------------
-- 
GitLab