mirror of
https://github.com/triqs/dft_tools
synced 2024-12-23 04:43:42 +01:00
Make generation of generated docs optional through docs_cpp2rst target
This commit is contained in:
parent
da10fdeb55
commit
4d2ba07226
@ -22,9 +22,9 @@ add_dependencies(docs_sphinx app4triqs_c)
|
|||||||
set(EXT_FOR_DOC "rst png txt css_t conf css js gif jpg py html bib md")
|
set(EXT_FOR_DOC "rst png txt css_t conf css js gif jpg py html bib md")
|
||||||
execute_process(COMMAND cp_rs ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${EXT_FOR_DOC})
|
execute_process(COMMAND cp_rs ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${EXT_FOR_DOC})
|
||||||
|
|
||||||
# ---------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Generate C++ doc with c++2rst
|
# Make an optional target that allows us to regenerate the C++ doc with c++2rst
|
||||||
# ---------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
add_custom_target(docs_cpp2rst)
|
add_custom_target(docs_cpp2rst)
|
||||||
|
|
||||||
get_property(TRIQS_INCLUDE_DIRS TARGET triqs PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
|
get_property(TRIQS_INCLUDE_DIRS TARGET triqs PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
|
||||||
@ -41,7 +41,7 @@ macro(generate_docs header_file)
|
|||||||
COMMAND c++2rst
|
COMMAND c++2rst
|
||||||
${header_file}
|
${header_file}
|
||||||
-N app4triqs
|
-N app4triqs
|
||||||
--output_directory ${CMAKE_CURRENT_BINARY_DIR}/cpp2rst_generated
|
--output_directory ${CMAKE_CURRENT_SOURCE_DIR}/cpp2rst_generated
|
||||||
${CPP2RST_INCLUDE_COMMAND}
|
${CPP2RST_INCLUDE_COMMAND}
|
||||||
--cxxflags="-std=c++17"
|
--cxxflags="-std=c++17"
|
||||||
-I ${CMAKE_SOURCE_DIR}/c++
|
-I ${CMAKE_SOURCE_DIR}/c++
|
||||||
@ -51,7 +51,6 @@ macro(generate_docs header_file)
|
|||||||
endmacro(generate_docs)
|
endmacro(generate_docs)
|
||||||
|
|
||||||
generate_docs(${CMAKE_SOURCE_DIR}/c++/app4triqs/toto.hpp)
|
generate_docs(${CMAKE_SOURCE_DIR}/c++/app4triqs/toto.hpp)
|
||||||
add_dependencies(docs_sphinx docs_cpp2rst)
|
|
||||||
|
|
||||||
# ---------------------------------
|
# ---------------------------------
|
||||||
# Install
|
# Install
|
||||||
|
Loading…
Reference in New Issue
Block a user