Skip to content
Snippets Groups Projects
Commit 90f833cf authored by Frank Gaede's avatar Frank Gaede
Browse files

- added version numbers to the CMake project

   and the libraries

 - prepared for a v00-01 test release
parent ab7bff5b
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 2.8.3 FATAL_ERROR) cmake_minimum_required(VERSION 2.8.3 FATAL_ERROR)
project(DD4hep) 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(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib) set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
......
...@@ -20,11 +20,16 @@ endif() ...@@ -20,11 +20,16 @@ endif()
include(DD4hep_XML_setup) 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}) target_link_libraries(DD4hepCore ${ROOT_LIBRARIES} ${XML_LIBRARIES} Geom Reflex ${libraries})
add_library(DD4hepPlugins SHARED ${plugin_sources}) add_library(DD4hepPlugins SHARED ${plugin_sources})
target_link_libraries(DD4hepPlugins ${ROOT_LIBRARIES} ${XML_LIBRARIES} DD4hepCore Geom Reflex ${libraries}) 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-------------------------------------------------------------- #---Rootmap generation--------------------------------------------------------------
dd4hep_generate_rootmap(DD4hepPlugins) dd4hep_generate_rootmap(DD4hepPlugins)
#dd4hep_install_library(DD4hepPlugins) #dd4hep_install_library(DD4hepPlugins)
......
...@@ -25,6 +25,10 @@ if(NOT DD4HEP_USE_XERCESC) ...@@ -25,6 +25,10 @@ if(NOT DD4HEP_USE_XERCESC)
endif() endif()
add_library(DD4hepG4 SHARED ${sources}) add_library(DD4hepG4 SHARED ${sources})
target_link_libraries(DD4hepG4 DD4hepCore ${ROOT_LIBRARIES} Reflex ${Geant4_LIBRARIES}) 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) dd4hep_generate_rootmap(DD4hepG4)
#--- install target------------------------------------- #--- install target-------------------------------------
......
DD4hep ---- Release Notes DD4hep ---- Release Notes
================================= =================================
--------
| v00-01 |
--------
- first beta release...
2013/20/03 Markus Frank 2013/20/03 Markus Frank
-------------------------- --------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment