Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Florian Weik
waLBerla
Commits
d8c4bb3f
Commit
d8c4bb3f
authored
Feb 12, 2019
by
RudolfWeeber
Committed by
Michael Kuron
Feb 13, 2019
Browse files
CMake: Make doc target and additional CXX warning flags switchable
parent
b6c6e2dd
Changes
1
Show whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
d8c4bb3f
...
...
@@ -64,6 +64,7 @@ option ( WALBERLA_BUILD_BENCHMARKS "Build Benchmarks"
option
(
WALBERLA_BUILD_TOOLS
"Build Tools"
)
option
(
WALBERLA_BUILD_TUTORIALS
"Build Tutorials"
ON
)
option
(
WALBERLA_BUILD_SHOWCASES
"Build Showcases"
OFF
)
option
(
WALBERLA_BUILD_DOC
"Build Documentation"
ON
)
option
(
WALBERLA_BUILD_WITH_MPI
"Build with MPI"
ON
)
option
(
WALBERLA_BUILD_WITH_METIS
"Build with metis graph partitioner"
OFF
)
...
...
@@ -275,7 +276,7 @@ set( CMAKE_CXX_STANDARD_REQUIRED ON )
set
(
CMAKE_CXX_EXTENSIONS OFF
)
# common flags for intel and g++
if
(
WALBERLA_CXX_COMPILER_IS_GNU OR WALBERLA_CXX_COMPILER_IS_INTEL
)
if
(
NOT WARNING_DISABLE
AND
(
WALBERLA_CXX_COMPILER_IS_GNU OR WALBERLA_CXX_COMPILER_IS_INTEL
)
)
add_flag
(
CMAKE_CXX_FLAGS
"-Wall -Wconversion -Wshadow"
)
endif
()
...
...
@@ -613,12 +614,13 @@ if ( WALBERLA_BUILD_WITH_PYTHON )
endif
()
if
(
WALBERLA_BUILD_DOC
)
# Sphinx documentation
# to build documentation make sure to have sphinx and read-the-docs theme installed
# Install with: "pip install sphinx sphinx_rtd_theme"
add_custom_target
(
docPython sphinx-build -b html
"
${
walberla_SOURCE_DIR
}
/python/waLBerla_docs"
"
${
walberla_BINARY_DIR
}
/doc/python"
COMMENT
"Building HTML documentation for Python extension with Sphinx"
)
endif
()
endif
()
...
...
@@ -1235,18 +1237,19 @@ endif()
############################################################################################################################
# Documentation Generation
#
# Build documentation using Doxygen (www.doxygen.org)
############################################################################################################################
find_package
(
Doxygen
)
find_package
(
HTMLHelp
)
if
(
WALBERLA_BUILD_DOC
)
# Build documentation using Doxygen (www.doxygen.org)
############################################################################################################################
find_package
(
Doxygen
)
find_package
(
HTMLHelp
)
if
(
HTML_HELP_COMPILER EQUAL
""
)
if
(
HTML_HELP_COMPILER EQUAL
""
)
set
(
HTML_HELP_FOUND
"NO"
)
else
(
)
else
(
)
set
(
HTML_HELP_FOUND
"YES"
)
endif
(
)
endif
(
)
if
(
DOXYGEN_FOUND
)
if
(
DOXYGEN_FOUND
)
set
(
DOXYGEN_HTML_HEADER
${
walberla_SOURCE_DIR
}
/doc/header.html
)
set
(
DOXYGEN_HTML_FOOTER
${
walberla_SOURCE_DIR
}
/doc/footer.html
)
set
(
DOXYGEN_HTML_OUTPUT
"html"
)
...
...
@@ -1256,7 +1259,9 @@ if ( DOXYGEN_FOUND )
add_custom_target
(
doc
${
DOXYGEN_EXECUTABLE
}
${
walberla_BINARY_DIR
}
/doc/doxygen.cfg
COMMENT
"Generating API documentation with Doxygen"
VERBATIM
)
endif
(
)
endif
(
)
endif
()
############################################################################################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment