+ add_custom_target(install-doc
+ COMMAND ${CMAKE_COMMAND} -DCOMPONENT=doc -P ${CMAKE_BINARY_DIR}/cmake_install.cmake
+ COMMENT "Installing API documentation")
+ add_dependencies(install-doc doc)
+
+ install(CODE "execute_process(COMMAND ${CMAKE_BUILD_TOOL} doc)")
+