diff options
author | Thomas White <taw@physics.org> | 2018-05-28 15:51:53 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-05-28 15:51:53 +0200 |
commit | 487cb42d6553295deaa5595a913ee9d9dedbb112 (patch) | |
tree | 1c085aa0ce29582378dded44b173f16deabb49ba | |
parent | 65ca6b36c47d3b59b22ea72a354cc22cc84bad4e (diff) |
Set version for shared library
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | libcrystfel/CMakeLists.txt | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index aea8e29d..1bf6ec7d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.6) -project(crystfel VERSION 0.7.0 LANGUAGES C) +set(CRYSTFEL_VERSION 0.7.0) +set(CRYSTFEL_API_VERSION 10) +project(crystfel VERSION ${CRYSTFEL_VERSION} LANGUAGES C) include(GNUInstallDirs) diff --git a/libcrystfel/CMakeLists.txt b/libcrystfel/CMakeLists.txt index 5cd288ac..a6671d8c 100644 --- a/libcrystfel/CMakeLists.txt +++ b/libcrystfel/CMakeLists.txt @@ -78,6 +78,9 @@ add_library(${PROJECT_NAME} SHARED set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH_USE_LINK_PATH 1) +set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${CRYSTFEL_API_VERSION}) +set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${CRYSTFEL_VERSION}) + set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "") target_include_directories(${PROJECT_NAME} INTERFACE ${PROJECT_SOURCE_DIR}/src) target_include_directories(${PROJECT_NAME} PRIVATE ${HDF5_INCLUDE_DIRS}) |