I'm trying to simply run a doxygen dox_er_ros command from cmakeLists.txt file to generate documentation for the project. The dox_er_ros file path is /src/er_ros/ and the cmake file exists in /src/ directory
I've tried using execute_process() and add_custom_command() methods but due to the lack of experience with cmake I don't understand what was I doing wrong.
add_custom_command(
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/er_ros
COMMAND doxygen dox_er_ros
)
I expect to see some kind of documentation generation when running catkin_make cmd. For now I saw that cmake can't find dox_er_ros or nothing at all.