make it possible for user modules to specify their own doxygen layout file
by default, the one shipped with opm-cmake is used and everything stays as before.
This commit is contained in:
parent
381b8eb409
commit
0275e0df85
@ -25,6 +25,16 @@ macro (opm_doc opm doxy_dir)
|
||||
file (WRITE ${PROJECT_BINARY_DIR}/${doxy_dir}/Doxyfile.in ${_doxy_templ} ${_doxy_local})
|
||||
# set this generically named variable so even the custom file can be shared
|
||||
set (src_DIR "${${opm}_DIR}")
|
||||
|
||||
# copy the doxygen layout XML file to the build directorie's doxygen
|
||||
# directory. if the source module ships with such a file it takes
|
||||
# precedence over the one shipped with the build system.
|
||||
if (EXISTS ${PROJECT_SOURCE_DIR}/${doxy_dir}/DoxygenLayout.xml)
|
||||
file(COPY ${PROJECT_SOURCE_DIR}/${doxy_dir}/DoxygenLayout.xml DESTINATION ${PROJECT_BINARY_DIR}/${doxy_dir})
|
||||
else()
|
||||
file(COPY ${OPM_MACROS_ROOT}/cmake/Templates/DoxygenLayout.xml DESTINATION ${PROJECT_BINARY_DIR}/${doxy_dir})
|
||||
endif()
|
||||
|
||||
# replace variables in this combined file
|
||||
configure_file (
|
||||
${PROJECT_BINARY_DIR}/${doxy_dir}/Doxyfile.in
|
||||
|
@ -1640,7 +1640,7 @@ OUTPUT_DIRECTORY = @PROJECT_BINARY_DIR@/@doxy_dir@
|
||||
# You can optionally specify a file name after the option, if omitted
|
||||
# DoxygenLayout.xml will be used as the name of the layout file.
|
||||
|
||||
LAYOUT_FILE = @OPM_MACROS_ROOT@/cmake/Templates/DoxygenLayout.xml
|
||||
LAYOUT_FILE = @PROJECT_BINARY_DIR@/@doxy_dir@/DoxygenLayout.xml
|
||||
|
||||
# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional
|
||||
# user-defined cascading style sheet that is included after the standard
|
||||
|
Loading…
Reference in New Issue
Block a user