build DOC cover types plugins by doxygen generation
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 09f6dc8..7def16c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,6 +88,26 @@
configure_file(${PROJECT_SOURCE_DIR}/src/config.h.in ${PROJECT_BINARY_DIR}/src/config.h @ONLY)
configure_file(${PROJECT_SOURCE_DIR}/src/version.h.in ${PROJECT_BINARY_DIR}/src/version.h @ONLY)
+# type plugins are separate because they have their documentation generated
+set(type_plugins
+ src/plugins_types/binary.c
+ src/plugins_types/bits.c
+ src/plugins_types/boolean.c
+ src/plugins_types/decimal64.c
+ src/plugins_types/empty.c
+ src/plugins_types/enumeration.c
+ src/plugins_types/identityref.c
+ src/plugins_types/instanceid.c
+ src/plugins_types/integer.c
+ src/plugins_types/leafref.c
+ src/plugins_types/string.c
+ src/plugins_types/union.c
+ src/plugins_types/ip_address.c
+ src/plugins_types/ip_prefix.c
+ src/plugins_types/date_and_time.c
+ src/plugins_types/hex_string.c
+ src/plugins_types/xpath1.0.c)
+
set(libsrc
src/common.c
src/log.c
@@ -127,30 +147,14 @@
src/printer_tree.c
src/plugins.c
src/plugins_types.c
- src/plugins_types/binary.c
- src/plugins_types/bits.c
- src/plugins_types/boolean.c
- src/plugins_types/decimal64.c
- src/plugins_types/empty.c
- src/plugins_types/enumeration.c
- src/plugins_types/identityref.c
- src/plugins_types/instanceid.c
- src/plugins_types/integer.c
- src/plugins_types/leafref.c
- src/plugins_types/string.c
- src/plugins_types/union.c
- src/plugins_types/ip_address.c
- src/plugins_types/ip_prefix.c
- src/plugins_types/date_and_time.c
- src/plugins_types/hex_string.c
- src/plugins_types/xpath1.0.c
src/plugins_exts.c
src/plugins_exts/metadata.c
src/plugins_exts/nacm.c
src/plugins_exts/yangdata.c
src/xml.c
src/xpath.c
- src/validation.c)
+ src/validation.c
+ ${type_plugins})
set(headers
src/libyang.h
diff --git a/CMakeModules/Doc.cmake b/CMakeModules/Doc.cmake
index f10b864..1800072 100644
--- a/CMakeModules/Doc.cmake
+++ b/CMakeModules/Doc.cmake
@@ -12,7 +12,7 @@
add_custom_target(doc
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
- string(REPLACE ";" " " DOXY_HEADERS "${headers};${PROJECT_BINARY_DIR}/src/version.h")
+ string(REPLACE ";" " " DOXY_HEADERS "${headers};${PROJECT_BINARY_DIR}/src/version.h;${type_plugins}")
configure_file(Doxyfile.in Doxyfile)
endif()
endmacro()