Description: Fix the linking of the shared library and the inclusion of the JavaScript libraries
Author: Sebastien Jodogne <s.jodogne@gmail.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: OrthancWebViewer-2.3/CMakeLists.txt
===================================================================
--- OrthancWebViewer-2.3.orig/CMakeLists.txt
+++ OrthancWebViewer-2.3/CMakeLists.txt
@@ -56,7 +56,7 @@ include(${CMAKE_SOURCE_DIR}/Orthanc/Reso
 include(${CMAKE_SOURCE_DIR}/Orthanc/Resources/CMake/SQLiteConfiguration.cmake)
 
 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GdcmConfiguration.cmake)
-include(${CMAKE_SOURCE_DIR}/Resources/CMake/JavaScriptLibraries.cmake)
+set(JAVASCRIPT_LIBS_DIR ${CMAKE_CURRENT_BINARY_DIR}/javascript-libs/)
 
 
 # Check that the Orthanc SDK headers are available
@@ -187,9 +187,10 @@ message("Setting the version of the libr
 
 add_definitions(-DORTHANC_WEBVIEWER_VERSION="${ORTHANC_WEBVIEWER_VERSION}")
 
-set_target_properties(OrthancWebViewer PROPERTIES 
-  VERSION ${ORTHANC_WEBVIEWER_VERSION} 
-  SOVERSION ${ORTHANC_WEBVIEWER_VERSION})
+set_target_properties(OrthancWebViewer PROPERTIES
+  NO_SONAME ON
+  LINK_FLAGS "-Wl,-soname,libOrthancWebViewer.so.${ORTHANC_WEBVIEWER_VERSION}"
+  )
 
 install(
   TARGETS OrthancWebViewer
