find_package(Sphinx)

set(SOURCES conf.py
            index.rst
            developers.rst
            getting-started.rst
            reference.rst
            property-reference.rst
            subject-reference.rst)

if(Sphinx_FOUND)
    add_custom_target(docs
                      COMMAND ${SPHINX_EXECUTABLE} -b html
                              "${CMAKE_CURRENT_SOURCE_DIR}"
                               html
                      COMMENT "Building documentation."
                      SOURCES ${SOURCES}
                      BYPRODUCTS html)
    message(STATUS "Sphinx found.")
else()
    message(STATUS "Sphinx not found. Will not create documentation target.")
endif()
find_package(Sphinx)

set(SOURCES conf.py
            index.rst
            developers.rst
            getting-started.rst
            reference/index.rst
            reference/property.rst
            reference/shared_subscription.rst
            reference/subject.rst
            reference/unique_subscription.rst)

if(Sphinx_FOUND)
    add_custom_target(docs
                      COMMAND ${SPHINX_EXECUTABLE} -b html
                              "${CMAKE_CURRENT_SOURCE_DIR}"
                               html
                      COMMENT "Building documentation."
                      SOURCES ${SOURCES}
                      BYPRODUCTS html)
    message(STATUS "Sphinx found.")
else()
    message(STATUS "Sphinx not found. Will not create documentation target.")
endif()
Fix cmake file for docs.
Fix cmake file for docs.
