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.4/CMakeLists.txt
===================================================================
--- OrthancWebViewer-2.4.orig/CMakeLists.txt
+++ OrthancWebViewer-2.4/CMakeLists.txt
@@ -60,7 +60,7 @@ include_directories(${ORTHANC_ROOT})
 
 
 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
@@ -156,9 +156,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
