# HG changeset patch # User Sebastien Jodogne # Date 1425035294 -3600 # Node ID 49fa9c774465a5c648726f7ed354501cd7b5da92 # Parent fb9aca75eafda5af373c5b1526edc3b334ada438 versioning diff -r fb9aca75eafd -r 49fa9c774465 CMakeLists.txt --- a/CMakeLists.txt Fri Feb 27 11:56:07 2015 +0100 +++ b/CMakeLists.txt Fri Feb 27 12:08:14 2015 +0100 @@ -20,6 +20,9 @@ project(OrthancPostgreSQL) +set(ORTHANC_WEBVIEWER_VERSION "1.0") + + # Parameters of the build set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") SET(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)") @@ -179,11 +182,16 @@ target_link_libraries(OrthancWebViewer ${GDCM_LIBRARIES} ${OS_LIBRARIES}) +message("Setting the version of the library to ${ORTHANC_WEBVIEWER_VERSION}") +set_target_properties(OrthancWebViewer PROPERTIES + VERSION ${ORTHANC_WEBVIEWER_VERSION} + SOVERSION ${ORTHANC_WEBVIEWER_VERSION}) + install( - TARGETS OrthancWebViewer - RUNTIME DESTINATION lib # Destination for Windows - LIBRARY DESTINATION lib # Destination for Linux - ) + TARGETS OrthancWebViewer + RUNTIME DESTINATION lib # Destination for Windows + LIBRARY DESTINATION lib # Destination for Linux + ) add_executable(UnitTests ${CORE_SOURCES}