blob: ce64cecf615f4d5b9d3f6827d6dc14f0b6723ec4 [file] [log] [blame]
piotr437f5462014-02-04 17:57:25 +01001# Copyright 2011 Free Software Foundation, Inc.
2#
Vasil Velichkov1789ae22019-08-13 20:32:05 +00003# This file was generated by gr_modtool, a tool from the GNU Radio framework
4# This file is a part of gr-gsm
piotr437f5462014-02-04 17:57:25 +01005#
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########################################################################
24file(TO_NATIVE_PATH ${CMAKE_SOURCE_DIR} top_srcdir)
25file(TO_NATIVE_PATH ${CMAKE_BINARY_DIR} top_builddir)
26file(TO_NATIVE_PATH ${CMAKE_SOURCE_DIR} abs_top_srcdir)
27file(TO_NATIVE_PATH ${CMAKE_BINARY_DIR} abs_top_builddir)
28
29set(HAVE_DOT ${DOXYGEN_DOT_FOUND})
30set(enable_html_docs YES)
31set(enable_latex_docs NO)
32set(enable_xml_docs YES)
33
34configure_file(
35 ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
36 ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
37@ONLY)
38
39set(BUILT_DIRS ${CMAKE_CURRENT_BINARY_DIR}/xml ${CMAKE_CURRENT_BINARY_DIR}/html)
40
41########################################################################
42# Make and install doxygen docs
43########################################################################
44add_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
51add_custom_target(doxygen_target ALL DEPENDS ${BUILT_DIRS})
52
Piotr Krysikdf417732020-02-16 08:58:28 +010053install(
54 DIRECTORY
55 ${BUILT_DIRS}
56 DESTINATION ${GR_PKG_DOC_DIR}
57)