COMPONENT "${project}-sphinx-man"
DESTINATION ${INSTALL_MANDIR}man1)
+ if(NOT LLVM_ENABLE_IDE)
+ add_llvm_install_targets("install-${SPHINX_TARGET_NAME}"
+ DEPENDS ${SPHINX_TARGET_NAME}
+ COMPONENT "${project}-sphinx-man")
+ endif()
elseif (builder STREQUAL html)
string(TOUPPER "${project}" project_upper)
set(${project_upper}_INSTALL_SPHINX_HTML_DIR "share/doc/${project}/html"
install(DIRECTORY "${SPHINX_BUILD_DIR}/."
COMPONENT "${project}-sphinx-html"
DESTINATION "${${project_upper}_INSTALL_SPHINX_HTML_DIR}")
+
+ if(NOT LLVM_ENABLE_IDE)
+ add_llvm_install_targets("install-${SPHINX_TARGET_NAME}"
+ DEPENDS ${SPHINX_TARGET_NAME}
+ COMPONENT "${project}-sphinx-html")
+ endif()
else()
message(WARNING Installation of ${builder} not supported)
endif()
install(TARGETS ${target}
${export_to_llvmexports}
+ COMPONENT ${target}
RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR})
+ if(NOT LLVM_ENABLE_IDE)
+ add_llvm_install_targets("install-${target}"
+ DEPENDS ${target}
+ COMPONENT ${target})
+ endif()
endif()
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${target})
endmacro()