How do I include an image in a Sphinx .rst file that has been automatically generated outside the Sphinx source directory?
I build a Sphinx project using CMake. One of the Sphinx source files includes a PDF image that is generated by a separate target in the CMake project. As far as I understand, one should not generate outputs from a CMake build process inside the CMake source tree. (I think this can be justified by the fact that different CMake build configurations generate different outputs). Thus, the input to the Sphinx build cannot be in the Sphinx source tree and the relative path to the the image to include in the Sphinx document is unknown when writing the Sphinx code.
How can I solve this?