piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 1 | # Copyright 2011 Free Software Foundation, Inc. |
| 2 | # |
Vasil Velichkov | 1789ae2 | 2019-08-13 20:32:05 +0000 | [diff] [blame] | 3 | # This file was generated by gr_modtool, a tool from the GNU Radio framework |
| 4 | # This file is a part of gr-gsm |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 5 | # |
| 6 | # GNU Radio is free software; you can redistribute it and/or modify |
| 7 | # it under the terms of the GNU General Public License as published by |
| 8 | # the Free Software Foundation; either version 3, or (at your option) |
| 9 | # any later version. |
| 10 | # |
| 11 | # GNU Radio is distributed in the hope that it will be useful, |
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | # GNU General Public License for more details. |
| 15 | # |
| 16 | # You should have received a copy of the GNU General Public License |
| 17 | # along with GNU Radio; see the file COPYING. If not, write to |
| 18 | # the Free Software Foundation, Inc., 51 Franklin Street, |
| 19 | # Boston, MA 02110-1301, USA. |
| 20 | |
| 21 | ######################################################################## |
| 22 | # Create the doxygen configuration file |
| 23 | ######################################################################## |
| 24 | file(TO_NATIVE_PATH ${CMAKE_SOURCE_DIR} top_srcdir) |
| 25 | file(TO_NATIVE_PATH ${CMAKE_BINARY_DIR} top_builddir) |
| 26 | file(TO_NATIVE_PATH ${CMAKE_SOURCE_DIR} abs_top_srcdir) |
| 27 | file(TO_NATIVE_PATH ${CMAKE_BINARY_DIR} abs_top_builddir) |
| 28 | |
| 29 | set(HAVE_DOT ${DOXYGEN_DOT_FOUND}) |
| 30 | set(enable_html_docs YES) |
| 31 | set(enable_latex_docs NO) |
| 32 | set(enable_xml_docs YES) |
| 33 | |
| 34 | configure_file( |
| 35 | ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in |
| 36 | ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile |
| 37 | @ONLY) |
| 38 | |
| 39 | set(BUILT_DIRS ${CMAKE_CURRENT_BINARY_DIR}/xml ${CMAKE_CURRENT_BINARY_DIR}/html) |
| 40 | |
| 41 | ######################################################################## |
| 42 | # Make and install doxygen docs |
| 43 | ######################################################################## |
| 44 | add_custom_command( |
| 45 | OUTPUT ${BUILT_DIRS} |
| 46 | COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile |
| 47 | WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} |
| 48 | COMMENT "Generating documentation with doxygen" |
| 49 | ) |
| 50 | |
| 51 | add_custom_target(doxygen_target ALL DEPENDS ${BUILT_DIRS}) |
| 52 | |
Piotr Krysik | df41773 | 2020-02-16 08:58:28 +0100 | [diff] [blame] | 53 | install( |
| 54 | DIRECTORY |
| 55 | ${BUILT_DIRS} |
| 56 | DESTINATION ${GR_PKG_DOC_DIR} |
| 57 | ) |