Add codedoc-buidling to CMake, using naturaldoc (v1.x)

master
Karl F 2020-02-12 12:57:14 +01:00
parent 68cc2ea057
commit e9540885c0
2 changed files with 10 additions and 2 deletions

View File

@ -258,6 +258,14 @@ add_executable(savegamedump WIN32
src/PngWriter.cpp
)
find_program(NATURALDOCS NAMES naturaldocs)
if (NATURALDOCS)
add_custom_target(codedoc
${CMAKE_COMMAND} -E make_directory codedoc
COMMAND naturaldocs -i src/ -i data/libs/ -xi src/data/ -o HTML codedoc/ -p nd/ -do -ro -s Default Local
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
endif()
list(APPEND pioneerLibs
pioneerLib
${ASSIMP_LIBRARIES}

View File

@ -215,9 +215,9 @@ modules such as missions and BBS interaction. See the pioneer wiki for further
details. For up-to-date documentation one can build it locally from the
pioneer source
0. Install dependencies: naturaldocs
0. Install dependencies: naturaldocs (v 1.x)
1. Run make codedoc
1. Run make -C build codedoc
2. The html documentation can be found in the codedoc/ folder