Index: splinter-3.0/CMakeLists.txt
===================================================================
--- splinter-3.0.orig/CMakeLists.txt
+++ splinter-3.0/CMakeLists.txt
@@ -223,45 +223,57 @@ target_link_libraries(${TEST} ${STATIC_L
 # License file
 install(
         FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE
-        DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/splinter-matlab/
+        DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-matlab/
 )
 # Matlab files (.m)
 install(
         DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/matlab
-        DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/splinter-matlab
+        DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-matlab
 )
 # Version file (used for deducing the name of the binary when loading it)
 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/splinter-matlab/version ${VERSION})
 install(
+  FILES ${CMAKE_CURRENT_BINARY_DIR}/splinter-matlab/version
+  DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-matlab)
+
+install(
         FILES include/cinterface/cinterface.h
-        DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/splinter-matlab/include
+        DESTINATION ${CMAKE_INSTALL_PREFIX}/include/SPLINTER/splinter-matlab/include
 )
 install(
         TARGETS ${SHARED_LIBRARY}
-        DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/splinter-matlab/lib/${OS_STRING}/${ARCH}
+        DESTINATION ${LIBRARY_INSTALL_DIRECTORY}/SPLINTER/splinter-matlab/lib/${OS_STRING}/${ARCH}
 )
 
 # Make the directory structure expected by the Python interface
 install(
         FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE
-        DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/splinter-python/
+        DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-python/
 )
 # Python files (.py)
 install(
         DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python
-        DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/splinter-python
+        DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-python
         PATTERN "*.pyc" EXCLUDE
         PATTERN "__pycache__*" EXCLUDE
 )
 # Version file (used for deducing the name of the binary when loading it)
 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/splinter-python/version ${VERSION})
 install(
+        FILES ${CMAKE_CURRENT_BINARY_DIR}/splinter-python/version
+        DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-python)
+
+install(
+        FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE
+        DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-python/
+)
+install(
         FILES include/cinterface/cinterface.h
-        DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/splinter-python/include
+        DESTINATION ${CMAKE_INSTALL_PREFIX}/include/SPLINTER/splinter-python/include
 )
 install(
         TARGETS ${SHARED_LIBRARY}
-        DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/splinter-python/lib/${OS_STRING}/${ARCH}
+        DESTINATION ${LIBRARY_INSTALL_DIRECTORY}/SPLINTER/splinter-python/lib/${OS_STRING}/${ARCH}
 )
 
 # Install the header files (including Eigen) to the header directory
