Index: opengv/CMakeLists.txt
===================================================================
--- opengv.orig/CMakeLists.txt
+++ opengv/CMakeLists.txt
@@ -328,9 +328,10 @@ IF (BUILD_TESTS)
 
 ENDIF()
 
+include(GNUInstallDirs)
+
 # Configuration
-set(config_install_dir "lib/cmake/${PROJECT_NAME}-${PROJECT_VERSION}")
-set(include_install_dir "include")
+set(config_install_dir "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
 set(version_config "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake")
 set(project_config "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake")
 set(targets_export_name "${PROJECT_NAME}Targets")
@@ -358,10 +359,10 @@ export(TARGETS opengv FILE "${CMAKE_CURR
 # Targets:
 install(TARGETS opengv
         EXPORT "${targets_export_name}"
-        LIBRARY DESTINATION "lib"
-        ARCHIVE DESTINATION "lib"
-        RUNTIME DESTINATION "bin"
-        INCLUDES DESTINATION "${include_install_dir}")
+        LIBRARY DESTINATION  ${CMAKE_INSTALL_LIBDIR}
+        ARCHIVE DESTINATION  ${CMAKE_INSTALL_LIBDIR}
+        RUNTIME DESTINATION  ${CMAKE_INSTALL_BINDIR}
+        INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
 
 # Config
 #   * <prefix>/lib/cmake/opengv/opengvConfig.cmake
@@ -377,7 +378,7 @@ install(EXPORT "${targets_export_name}"
 
 # Headers
 install(DIRECTORY include/ 
-        DESTINATION ${include_install_dir} 
+        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} 
         FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp")
 
 
