2015-04-28 18:33:32 -04:00
|
|
|
set (common_SRCS
|
|
|
|
common/communication.adoc
|
|
|
|
common/license.adoc
|
|
|
|
common/links.adoc
|
|
|
|
)
|
|
|
|
|
2015-04-28 14:37:50 -04:00
|
|
|
set (UG_SRCS
|
|
|
|
user_guide/acknowledgements.adoc
|
|
|
|
user_guide/compiling.adoc
|
|
|
|
user_guide/config-details.adoc
|
|
|
|
user_guide/controls-functions-center.adoc
|
|
|
|
user_guide/controls-functions-left.adoc
|
|
|
|
user_guide/controls-functions-main-window.adoc
|
|
|
|
user_guide/controls-functions-menus.adoc
|
|
|
|
user_guide/controls-functions-messages.adoc
|
|
|
|
user_guide/controls-functions-status-bar.adoc
|
|
|
|
user_guide/controls-functions-wide-graph.adoc
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/cooperating-programs.adoc
|
2015-04-28 14:37:50 -04:00
|
|
|
user_guide/faq.adoc
|
|
|
|
user_guide/font-sizes.adoc
|
2015-11-16 15:13:47 -05:00
|
|
|
user_guide/implementation.adoc
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/install-from-source.adoc
|
|
|
|
user_guide/install-linux.adoc
|
|
|
|
user_guide/install-mac.adoc
|
|
|
|
user_guide/install-windows.adoc
|
|
|
|
user_guide/introduction.adoc
|
2015-11-16 15:13:47 -05:00
|
|
|
user_guide/protocols.adoc
|
2015-05-27 21:50:34 -04:00
|
|
|
user_guide/logging.adoc
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/make-qso.adoc
|
|
|
|
user_guide/new_features.adoc
|
|
|
|
user_guide/platform-dependencies.adoc
|
|
|
|
user_guide/settings-audio.adoc
|
2015-05-27 21:50:34 -04:00
|
|
|
user_guide/settings-colors.adoc
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/settings-frequencies.adoc
|
|
|
|
user_guide/settings-general.adoc
|
|
|
|
user_guide/settings-radio.adoc
|
|
|
|
user_guide/settings-reporting.adoc
|
|
|
|
user_guide/settings-txmacros.adoc
|
2015-06-12 15:52:29 -04:00
|
|
|
user_guide/support.adoc
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/system-requirements.adoc
|
|
|
|
user_guide/transceiver-setup.adoc
|
|
|
|
user_guide/tutorial-example1.adoc
|
|
|
|
user_guide/tutorial-example2.adoc
|
|
|
|
user_guide/tutorial-main-window.adoc
|
|
|
|
user_guide/tutorial-wide-graph-settings.adoc
|
|
|
|
user_guide/utilities.adoc
|
2015-11-13 15:26:41 -05:00
|
|
|
user_guide/vhf-features.adoc
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/wsjtx-main.adoc
|
|
|
|
user_guide/wspr.adoc
|
2015-04-28 14:37:50 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set (UG_IMGS
|
|
|
|
user_guide/images/130610_2343-wav-80.png
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/images/band-settings.png
|
2015-05-27 21:50:34 -04:00
|
|
|
user_guide/images/colors.png
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/images/decode-menu.png
|
|
|
|
user_guide/images/decodes.png
|
|
|
|
user_guide/images/file-menu.png
|
|
|
|
user_guide/images/freemsg.png
|
2015-04-28 14:37:50 -04:00
|
|
|
user_guide/images/help-menu.png
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/images/jtalert.png
|
|
|
|
user_guide/images/keyboard-shortcuts.png
|
|
|
|
user_guide/images/log-qso.png
|
|
|
|
user_guide/images/MacAppMenu.png
|
|
|
|
user_guide/images/main-ui-1.5.png
|
|
|
|
user_guide/images/main-ui-controls.png
|
|
|
|
user_guide/images/misc-controls-center.png
|
|
|
|
user_guide/images/misc-main-ui.png
|
2015-04-28 14:37:50 -04:00
|
|
|
user_guide/images/mode-menu.png
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/images/new-msg-box.png
|
|
|
|
user_guide/images/psk-reporter.png
|
|
|
|
user_guide/images/r3666-config-screen-80.png
|
|
|
|
user_guide/images/r3666-main-ui-80.png
|
2015-04-28 14:37:50 -04:00
|
|
|
user_guide/images/r4148-txmac-ui.png
|
|
|
|
user_guide/images/RadioTab.png
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/images/reporting.png
|
2015-04-28 14:37:50 -04:00
|
|
|
user_guide/images/save-menu.png
|
|
|
|
user_guide/images/settings-audio.png
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/images/settings-frequencies.png
|
2015-05-31 11:29:59 -04:00
|
|
|
user_guide/images/settings-general.png
|
2015-04-28 14:37:50 -04:00
|
|
|
user_guide/images/setup-menu.png
|
|
|
|
user_guide/images/special-mouse-commands.png
|
2015-11-10 09:19:22 -05:00
|
|
|
user_guide/images/status-bar-a.png
|
|
|
|
user_guide/images/traditional-msg-box.png
|
|
|
|
user_guide/images/tx-macros.png
|
|
|
|
user_guide/images/view-menu.png
|
|
|
|
user_guide/images/wide-graph-controls.png
|
|
|
|
|
2015-04-28 14:37:50 -04:00
|
|
|
)
|
|
|
|
|
2015-04-28 20:51:52 -04:00
|
|
|
find_package (PythonInterp 2.4 REQUIRED)
|
|
|
|
if (PYTHON_VERSION_STRING VERSION_GREATER 2.9.9)
|
|
|
|
message (FATAL_ERROR "The asciidoc package requires a Python version less than 3
|
|
|
|
|
|
|
|
Use CMAKE_PREFIX_PATH to point to an earlier version or install one,
|
|
|
|
you can also skip building the documentation by switching the option
|
|
|
|
WSJT_GENERATE_DOCS to OFF.")
|
|
|
|
endif (PYTHON_VERSION_STRING VERSION_GREATER 2.9.9)
|
|
|
|
|
2015-04-29 19:56:48 -04:00
|
|
|
find_program (ASCIIDOC_EXECUTABLE NAMES asciidoc asciidoc.py)
|
|
|
|
if (NOT ASCIIDOC_EXECUTABLE)
|
2015-05-27 18:06:59 -04:00
|
|
|
message (FATAL_ERROR "Asciidoc is required to build the documentation
|
|
|
|
|
|
|
|
Building the documenation may optionally be tured off by setting the CMake
|
|
|
|
option WSJT_GENERATE_DOCS to OFF.")
|
2015-04-29 19:56:48 -04:00
|
|
|
endif (NOT ASCIIDOC_EXECUTABLE)
|
2015-04-28 14:37:50 -04:00
|
|
|
|
|
|
|
include (CMakeParseArguments)
|
|
|
|
|
|
|
|
# generate an HTML document from asciidoc text files(s)
|
|
|
|
#
|
|
|
|
# HTML - variable for output file ${CMAKE_CURRENT_BINARY_DIR}/`$basename ${SOURCE}`.html
|
|
|
|
# SOURCE - top level asciidoc file
|
|
|
|
# ASCIIDOC_OPTIONS - asciidoc command options
|
|
|
|
# DEPENDS - dependent files
|
|
|
|
function (html_document)
|
|
|
|
cmake_parse_arguments (args "" "SOURCE;HTML" "ASCIIDOC_OPTIONS;DEPENDS" ${ARGN})
|
|
|
|
get_filename_component (_output_name_we ${args_SOURCE} NAME_WE)
|
|
|
|
get_filename_component (_path ${args_SOURCE} PATH)
|
|
|
|
set (_doc_file ${CMAKE_CURRENT_BINARY_DIR}/${_output_name_we}.html)
|
|
|
|
add_custom_command (
|
2015-04-28 15:44:23 -04:00
|
|
|
OUTPUT ${_doc_file}
|
2015-04-28 14:37:50 -04:00
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${path}
|
2015-04-29 19:56:48 -04:00
|
|
|
COMMAND ${PYTHON_EXECUTABLE} ARGS ${ASCIIDOC_EXECUTABLE} ${args_ASCIIDOC_OPTIONS} --out-file=${CMAKE_CURRENT_BINARY_DIR}/${_output_name_we}.html ${args_SOURCE}
|
2015-04-28 14:37:50 -04:00
|
|
|
DEPENDS ${args_DEPENDS}
|
|
|
|
COMMENT "Generating ${_doc_file}"
|
|
|
|
)
|
|
|
|
set (${args_HTML} ${_doc_file} PARENT_SCOPE)
|
|
|
|
endfunction (html_document)
|
|
|
|
|
2015-04-29 06:25:27 -04:00
|
|
|
configure_file (wsjtx.conf.in wsjtx.conf.out)
|
|
|
|
# copy the file to the final location only if the generated output
|
|
|
|
# changes reduces needless rebuilds
|
|
|
|
execute_process (
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different wsjtx.conf.out wsjtx.conf
|
|
|
|
)
|
|
|
|
|
2015-04-28 14:37:50 -04:00
|
|
|
html_document(
|
|
|
|
HTML user_guide
|
|
|
|
SOURCE user_guide/wsjtx-main.adoc
|
2015-05-12 17:32:18 -04:00
|
|
|
ASCIIDOC_OPTIONS -a data-uri -a toc2 -a max-width=1024px --conf-file=${CMAKE_CURRENT_BINARY_DIR}/wsjtx.conf --backend=xhtml11 --theme wsjt
|
2015-12-10 18:06:07 -05:00
|
|
|
DEPENDS ${common_SRCS} ${UG_SRCS} ${UG_IMGS} ${CMAKE_CURRENT_BINARY_DIR}/wsjtx.conf theme/wsjt/wsjt.css
|
2015-04-28 14:37:50 -04:00
|
|
|
)
|
|
|
|
add_custom_target (docs ALL DEPENDS ${user_guide})
|
|
|
|
|
|
|
|
install (FILES
|
|
|
|
${user_guide}
|
2015-12-08 16:10:19 -05:00
|
|
|
DESTINATION ${WSJT_SHARE_DESTINATION}/${WSJT_DOC_DESTINATION}
|
2015-04-28 18:59:12 -04:00
|
|
|
RENAME ${PROJECT_MANUAL}
|
2015-04-28 14:37:50 -04:00
|
|
|
#COMPONENT runtime
|
|
|
|
)
|