Skip to content

Commit

Permalink
Exclude the sphinx docs by default from VS build
Browse files Browse the repository at this point in the history
Refs #9559
  • Loading branch information
martyngigg committed Jun 2, 2014
1 parent 538904d commit c3b0fe0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
24 changes: 9 additions & 15 deletions Code/Mantid/MantidPlot/docs/python/CMakeLists.txt
Expand Up @@ -60,26 +60,20 @@ if ( SPHINX_FOUND )
DEPENDS ${SPHINX_CONF_FILES}
COMMENT "Generating Python API for sphinx"
)
set_property ( TARGET ${TARGET_NAME}-generateapi PROPERTY FOLDER "Documentation/python" )
# Group within VS and exclude from whole build
set_target_properties ( ${TARGET_NAME}-generateapi PROPERTIES FOLDER "Documentation/python"
EXCLUDE_FROM_DEFAULT_BUILD 1
EXCLUDE_FROM_ALL 1)


# HTML target
set ( SPHINX_HTML_BUILD ${SPHINX_BUILD}/html )
add_custom_target ( ${TARGET_NAME}-html
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MantidPlot -xq runsphinx_html.py
COMMENT "Build Sphinx html documentation"
)
set_property ( TARGET ${TARGET_NAME}-html PROPERTY FOLDER "Documentation/python" )
add_dependencies( ${TARGET_NAME}-html ${TARGET_NAME}-generateapi )

# Latex target
set ( SPHINX_LATEX_BUILD ${SPHINX_BUILD}/latex )
add_custom_target ( ${TARGET_NAME}-latex
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MantidPlot -xq runsphinx_latex.py
COMMENT "Build Python Sphinx latex documentation"
)
set_property ( TARGET ${TARGET_NAME}-latex PROPERTY FOLDER "Documentation/python" )
add_dependencies( ${TARGET_NAME}-latex ${TARGET_NAME}-generateapi )



# Group within VS and exclude from whole build
set_target_properties ( ${TARGET_NAME}-html PROPERTIES FOLDER "Documentation/python"
EXCLUDE_FROM_DEFAULT_BUILD 1
EXCLUDE_FROM_ALL 1)
endif ()
12 changes: 8 additions & 4 deletions Code/Mantid/docs/CMakeLists.txt
Expand Up @@ -21,8 +21,10 @@ if ( SPHINX_FOUND )
COMMAND ${DOCS_RUNNER_EXE} -xq runsphinx_html.py
COMMENT "Building html documentation"
)
# Group within VS
set_property ( TARGET ${TARGET_PREFIX}-html PROPERTY FOLDER "Documentation" )
# Group within VS and exclude from whole build
set_target_properties ( ${TARGET_PREFIX}-html PROPERTIES FOLDER "Documentation"
EXCLUDE_FROM_DEFAULT_BUILD 1
EXCLUDE_FROM_ALL 1)

# doctest target
set ( BUILDER doctest )
Expand All @@ -31,8 +33,10 @@ if ( SPHINX_FOUND )
COMMAND ${DOCS_RUNNER_EXE} -xq runsphinx_doctest.py
COMMENT "Running documentation tests"
)
set_property ( TARGET ${TARGET_PREFIX}-test PROPERTY FOLDER "Documentation" )

# Group within VS and exclude from whole build
set_target_properties ( ${TARGET_PREFIX}-test PROPERTIES FOLDER "Documentation"
EXCLUDE_FROM_DEFAULT_BUILD 1
EXCLUDE_FROM_ALL 1)
endif ()


Expand Down

0 comments on commit c3b0fe0

Please sign in to comment.