2007-05-21 16:30:04 +00:00
|
|
|
#
|
2016-01-01 11:09:53 +01:00
|
|
|
# Copyright (C) 2003-2016 Sébastien Helleu <flashcode@flashtux.org>
|
2010-06-22 19:46:28 +02:00
|
|
|
# Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org>
|
|
|
|
#
|
|
|
|
# This file is part of WeeChat, the extensible chat client.
|
|
|
|
#
|
|
|
|
# WeeChat is free software; you can redistribute it and/or modify
|
2007-05-21 16:30:04 +00:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
2007-07-02 12:25:13 +00:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
2007-05-21 16:30:04 +00:00
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
2010-06-22 19:46:28 +02:00
|
|
|
# WeeChat is distributed in the hope that it will be useful,
|
2007-05-21 16:30:04 +00:00
|
|
|
# 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
|
2010-06-22 19:46:28 +02:00
|
|
|
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
2007-05-21 16:30:04 +00:00
|
|
|
#
|
|
|
|
|
2014-04-12 18:00:27 +02:00
|
|
|
if(ENABLE_MAN OR ENABLE_DOC)
|
2015-01-12 21:53:34 +01:00
|
|
|
|
2014-04-12 18:00:27 +02:00
|
|
|
find_package(Sourcehighlight)
|
|
|
|
find_package(Asciidoc)
|
2015-01-12 21:53:34 +01:00
|
|
|
|
2014-04-12 18:00:27 +02:00
|
|
|
if(ASCIIDOC_FOUND)
|
2015-01-12 21:53:34 +01:00
|
|
|
|
2015-01-14 07:35:56 +01:00
|
|
|
set(CSS_TOC -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/asciidoc_toc.css)
|
|
|
|
set(CSS_TOC2 -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/asciidoc_toc2.css)
|
2015-01-12 21:53:34 +01:00
|
|
|
|
|
|
|
set(ASCIIDOC_ARGS -a revision="${VERSION}" -f ${CMAKE_CURRENT_SOURCE_DIR}/asciidoc.conf)
|
|
|
|
|
|
|
|
# use html5 backend if available (asciidoc >= 8.6.5)
|
|
|
|
if(ASCIIDOC_VERSION VERSION_EQUAL "8.6.5" OR ASCIIDOC_VERSION VERSION_GREATER "8.6.5")
|
|
|
|
set(ASCIIDOC_ARGS -b html5 ${ASCIIDOC_ARGS})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(ASCIIDOC_ARGS_USER ${ASCIIDOC_ARGS} ${CSS_TOC2} )
|
|
|
|
set(ASCIIDOC_ARGS_API ${ASCIIDOC_ARGS} ${CSS_TOC2} )
|
|
|
|
set(ASCIIDOC_ARGS_SCRIPTING ${ASCIIDOC_ARGS} ${CSS_TOC2} )
|
|
|
|
set(ASCIIDOC_ARGS_FAQ ${ASCIIDOC_ARGS} ${CSS_TOC} -n)
|
|
|
|
set(ASCIIDOC_ARGS_QUICKSTART ${ASCIIDOC_ARGS} ${CSS_TOC2} -n)
|
|
|
|
set(ASCIIDOC_ARGS_TESTER ${ASCIIDOC_ARGS} ${CSS_TOC2} )
|
|
|
|
set(ASCIIDOC_ARGS_RELAY ${ASCIIDOC_ARGS} ${CSS_TOC2} )
|
|
|
|
set(ASCIIDOC_ARGS_DEV ${ASCIIDOC_ARGS} ${CSS_TOC2} )
|
|
|
|
|
2014-07-20 19:16:01 +02:00
|
|
|
add_subdirectory(en)
|
|
|
|
add_subdirectory(fr)
|
|
|
|
add_subdirectory(it)
|
|
|
|
add_subdirectory(de)
|
|
|
|
add_subdirectory(pl)
|
|
|
|
add_subdirectory(es)
|
|
|
|
add_subdirectory(ru)
|
|
|
|
add_subdirectory(ja)
|
2015-09-27 22:11:21 +02:00
|
|
|
add_subdirectory(cs)
|
2015-01-12 21:53:34 +01:00
|
|
|
|
2014-04-12 18:00:27 +02:00
|
|
|
endif()
|
2015-01-12 21:53:34 +01:00
|
|
|
|
2014-04-12 18:00:27 +02:00
|
|
|
endif()
|