From de6b6b8ddf570044967a0c2dd19a883c7b8dbb84 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Wed, 7 Aug 2013 16:17:46 -0700 Subject: [PATCH] Install documentation into share/doc/opensubdiv/ Per the Filesystem Hierarchy Standard: http://www.pathname.com/fhs/pub/fhs-2.3.html#SPECIFICOPTIONS15 --- CMakeLists.txt | 4 ++++ documentation/CMakeLists.txt | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dba1b81b..647df666 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,6 +62,10 @@ if (NOT DEFINED CMAKE_PLUGINDIR_BASE) set( CMAKE_PLUGINDIR_BASE plugin ) endif() +if (NOT DEFINED CMAKE_DOCDIR_BASE) + set( CMAKE_DOCDIR_BASE share/doc/opensubdiv ) +endif() + # Allow install path to be overridden for cross-compile builds if(LIBRARY_OUTPUT_PATH_ROOT) SET( CMAKE_INSTALL_PREFIX ${LIBRARY_OUTPUT_PATH_ROOT}/ ) diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt index 8716f6c7..aae9ef41 100644 --- a/documentation/CMakeLists.txt +++ b/documentation/CMakeLists.txt @@ -45,7 +45,7 @@ if (DOXYGEN_FOUND) DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doxy_html DESTINATION - ${CMAKE_INSTALL_PREFIX}/documentation + ${CMAKE_DOCDIR_BASE} ) else() @@ -120,7 +120,7 @@ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND) FILES ${outfile} DESTINATION - ${CMAKE_INSTALL_PREFIX}/documentation + ${CMAKE_DOCDIR_BASE} PERMISSIONS OWNER_READ GROUP_READ WORLD_READ ) @@ -149,7 +149,7 @@ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND) FILES ${outfile} DESTINATION - ${CMAKE_INSTALL_PREFIX}/documentation + ${CMAKE_DOCDIR_BASE} ) endforeach() @@ -197,7 +197,7 @@ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND) DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tipuesearch DESTINATION - ${CMAKE_INSTALL_PREFIX}/documentation + ${CMAKE_DOCDIR_BASE} ) @@ -205,14 +205,14 @@ if (DOCUTILS_FOUND AND PYTHONINTERP_FOUND) DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/images DESTINATION - ${CMAKE_INSTALL_PREFIX}/documentation + ${CMAKE_DOCDIR_BASE} ) install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/css DESTINATION - ${CMAKE_INSTALL_PREFIX}/documentation + ${CMAKE_DOCDIR_BASE} ) list(APPEND DOC_TARGETS doc_html)