2018-06-25 06:06:12 +02:00
|
|
|
# CMakeLists.txt.
|
|
|
|
#
|
|
|
|
# @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
|
2020-01-20 17:17:00 +01:00
|
|
|
# @copyright 2014-2020, Institute for Automation of Complex Power Systems, EONERC
|
2018-06-25 06:06:12 +02:00
|
|
|
# @license GNU General Public License (version 3)
|
|
|
|
#
|
|
|
|
# VILLASnode
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
###################################################################################
|
|
|
|
|
2018-06-30 01:29:45 +02:00
|
|
|
find_package(Doxygen)
|
2018-06-25 06:06:12 +02:00
|
|
|
|
2018-06-30 01:29:45 +02:00
|
|
|
if(DOXYGEN_FOUND)
|
|
|
|
set(DOXYGEN_PROJECT_LOGO doc/pictures/villas_node.svg)
|
|
|
|
set(DOXYGEN_WARN_LOGFILE ${CMAKE_CURRENT_BINARY_DIR}/warnings.log)
|
|
|
|
set(DOXYGEN_TAB_SIZE 8)
|
|
|
|
set(DOXYGEN_OPTIMIZE_OUTPUT_FOR_C YES)
|
2018-09-08 11:11:53 +02:00
|
|
|
set(DOXYGEN_LAYOUT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/theme/layout.xml)
|
2018-06-30 01:29:45 +02:00
|
|
|
set(DOXYGEN_RECURSIVE YES)
|
|
|
|
set(DOXYGEN_EXAMPLE_PATH etc/)
|
|
|
|
set(DOXYGEN_EXAMPLE_RECURSIVE YES)
|
2018-09-08 11:11:53 +02:00
|
|
|
set(DOXYGEN_IMAGE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/pictures)
|
|
|
|
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE ${PROJECT_SOURCE_DIR}/README.md)
|
2018-06-30 01:29:45 +02:00
|
|
|
set(DOXYGEN_SOURCE_BROWSER YES)
|
|
|
|
set(DOXYGEN_REFERENCED_BY_RELATION YES)
|
2018-09-08 11:11:53 +02:00
|
|
|
set(DOXYGEN_HTML_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/theme/header.html)
|
|
|
|
set(DOXYGEN_HTML_EXTRA_STYLESHEET ${CMAKE_CURRENT_SOURCE_DIR}/theme/style.css)
|
|
|
|
set(DOXYGEN_HTML_EXTRA_FILES doc${CMAKE_CURRENT_SOURCE_DIR}/pictures/acs_eonerc_logo.svg)
|
2018-06-30 01:29:45 +02:00
|
|
|
set(DOXYGEN_HTML_COLORSTYLE_HUE 209)
|
|
|
|
set(DOXYGEN_HTML_COLORSTYLE_SAT 88)
|
|
|
|
set(DOXYGEN_HTML_TIMESTAMP YES)
|
|
|
|
set(DOXYGEN_HTML_DYNAMIC_SECTIONS YES)
|
|
|
|
set(DOXYGEN_GENERATE_TREEVIEW YES)
|
|
|
|
set(DOXYGEN_TREEVIEW_WIDTH 280)
|
|
|
|
set(DOXYGEN_UML_LOOK YES)
|
|
|
|
set(DOXYGEN_CALL_GRAPH YES)
|
|
|
|
set(DOXYGEN_CALLER_GRAPH YES)
|
|
|
|
set(DOXYGEN_DOT_IMAGE_FORMAT svg)
|
|
|
|
set(DOXYGEN_INTERACTIVE_SVG YES)
|
2018-09-08 11:11:53 +02:00
|
|
|
set(DOXYGEN_DIAFILE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/figures/)
|
2018-06-25 06:06:12 +02:00
|
|
|
|
2018-06-30 01:29:45 +02:00
|
|
|
doxygen_add_docs(doc
|
|
|
|
README.md CONTRIBUTING.md COPYING.md src/ lib/ tests/ include/ doc/
|
2018-07-16 20:16:14 +02:00
|
|
|
WORKING_DIRECTORY ${PROJECT_DIR}
|
2018-06-30 01:29:45 +02:00
|
|
|
)
|
|
|
|
|
2019-02-12 14:30:21 +01:00
|
|
|
# Ensure that documentation is built before installing it
|
|
|
|
install(CODE "execute_process(
|
|
|
|
COMMAND ${CMAKE_COMMAND} --build \"${CMAKE_CURRENT_BINARY_DIR}\" --target doc
|
|
|
|
WORKING_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}\"
|
|
|
|
)"
|
|
|
|
)
|
|
|
|
|
2018-06-30 01:29:45 +02:00
|
|
|
install(
|
|
|
|
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
|
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/villas/node
|
|
|
|
COMPONENT doc
|
|
|
|
)
|
|
|
|
endif()
|