Add codedoc-buidling to CMake, using naturaldoc (v1.x)
parent
68cc2ea057
commit
e9540885c0
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue