Index: PostgreSQL/CMakeLists.txt
--- PostgreSQL/CMakeLists.txt.orig
+++ PostgreSQL/CMakeLists.txt
@@ -101,37 +101,17 @@ add_definitions(
   )
 
 set_target_properties(OrthancPostgreSQLStorage PROPERTIES 
-  VERSION ${ORTHANC_PLUGIN_VERSION} 
-  SOVERSION ${ORTHANC_PLUGIN_VERSION}
+  LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLStorage.so"
   COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
   )
 
 set_target_properties(OrthancPostgreSQLIndex PROPERTIES 
-  VERSION ${ORTHANC_PLUGIN_VERSION} 
-  SOVERSION ${ORTHANC_PLUGIN_VERSION}
+  LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLIndex.so"
   COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
   )
 
 install(
   TARGETS OrthancPostgreSQLIndex OrthancPostgreSQLStorage
   RUNTIME DESTINATION lib    # Destination for Windows
-  LIBRARY DESTINATION share/orthanc/plugins    # Destination for Linux
-  )
-
-
-add_executable(UnitTests
-  Plugins/PostgreSQLIndex.cpp
-  Plugins/PostgreSQLStorageArea.cpp
-  UnitTests/PostgreSQLTests.cpp
-  UnitTests/UnitTestsMain.cpp
-  ${DATABASES_SOURCES}
-  ${GOOGLE_TEST_SOURCES}
-  ${AUTOGENERATED_SOURCES}
-  )
-
-add_dependencies(UnitTests AutogeneratedTarget)
-
-target_link_libraries(UnitTests ${GOOGLE_TEST_LIBRARIES})
-set_target_properties(UnitTests PROPERTIES
-  COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0
+  LIBRARY DESTINATION libexec/orthanc/plugins    # Destination for Linux
   )
