]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Default profile html static documentation
authorCamille GOUTTEBROZE <camille.gouttebroze@cea.fr>
Wed, 1 Oct 2014 08:02:40 +0000 (10:02 +0200)
committerCamille GOUTTEBROZE <camille.gouttebroze@cea.fr>
Wed, 1 Oct 2014 08:02:40 +0000 (10:02 +0200)
bin/app-template/CMakeLists.txt
bin/app-template/doc/CMakeLists.txt
bin/app-template/doc/conf.py.in
bin/app-template/resources/doc/CMakeLists.txt

index 942053da25cc46508289e4200aa35882c3d8c23e..20c30735e73a3a4db2a10eb7f0240fce0f444ab0 100644 (file)
@@ -64,16 +64,15 @@ ENDIF()
 # Directories
 # (default values taken from KERNEL)
 # ===========
-SET(SALOME_INSTALL_SCRIPT_PYTHON "${SALOME_INSTALL_SCRIPT_PYTHON}" CACHE PATH 
-   "Install path: SALOME Python scripts")
+SET(SALOME_INSTALL_SCRIPT_PYTHON "${SALOME_INSTALL_SCRIPT_PYTHON}" CACHE PATH "Install path: SALOME Python scripts")
 
 # Specific to [NAME_OF_APPLICATION]:
-SET(SALOME_[NAME_OF_APPLICATION]_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/(name_of_application)" CACHE PATH 
-    "Install path: SALOME PYHELLO specific data")
+SET(SALOME_[NAME_OF_APPLICATION]_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/(name_of_application)" CACHE PATH "Install path: SALOME [NAME_OF_APPLICATION] specific data")
+SET(SALOME_[NAME_OF_APPLICATION]_INSTALL_DOC_GUI "${SALOME_INSTALL_DOC}/gui/${PROJECT_NAME_UC}" CACHE PATH "Install path: SALOME [NAME_OF_APPLICATION] gui documentation")
+SET(SALOME_[NAME_OF_APPLICATION]_HTML_STATIC_PATH "${SALOME_INSTALL_DOC_GUI}/_static" CACHE PATH "Install path: SALOME [NAME_OF_APPLICATION] html static data")
 
 MARK_AS_ADVANCED(SALOME_INSTALL_SCRIPT_PYTHON)
 
-
 # Sources 
 # ========
 ADD_SUBDIRECTORY( src )
index 268da7f541c50f0cbdc31f117be0b5588305109c..9cbf0d5b9e9629d399f01eb90b815b8cf8def473 100755 (executable)
@@ -25,7 +25,7 @@ SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${SPHINX_EXECUTABLE}" "${_cm
 ADD_CUSTOM_TARGET(html_docs COMMAND ${_cmd})
 
 INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target html_docs)")
-INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION ${SALOME_INSTALL_DOC}/gui/${PROJECT_NAME_UC})
+INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION ${SALOME_INSTALL_DOC_GUI})
 
 SET(make_clean_files html doctrees)
 SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${make_clean_files}")
index d73a1ba3cfebeab8f9b3e1d5f76999bbfc6b7aa4..ed3706ac82fb3d6cd8aa65f598a5471770976bfe 100644 (file)
@@ -113,7 +113,7 @@ html_theme = 'default'
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['@CMAKE_CURRENT_SOURCE_DIR@/_static']
+html_static_path = ['@SALOME_[NAME_OF_APPLICATION]_HTML_STATIC_PATH@']
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.
index 59e9649d1b829fb797ae829d37c38220b6afa9cd..7f485593f66948367fd6badcbca36e8db635e0e4 100644 (file)
@@ -24,4 +24,4 @@ SET(_bin_DOCUMENTS
    sample.pdf
 )
 
-INSTALL(FILES ${_bin_DOCUMENTS} DESTINATION ${SALOME_INSTALL_DOC}/gui/${PROJECT_NAME_UC}/binaries)
+INSTALL(FILES ${_bin_DOCUMENTS} DESTINATION ${SALOME_[NAME_OF_APPLICATION]_HTML_STATIC_PATH})