Step 1: Install Doxygen

brew install doxygen

Step 2: Set Up Doxygen Configuration

  1. Navigate to the root directory of your project.
  2. Run Doxygen to create a configuration file:
doxygen -g

Step 3: Configure Doxyfile

Open the Doxyfile in a text editor and modify the following settings:

PROJECT_NAME = "Your Project Name"
PROJECT_NUMBER = "1.0"
INPUT = ./src ./include
GENERATE_HTML = YES
GENERATE_LATEX = YES
JAVADOC_AUTOBRIEF = YES  # For Javadoc-style comments
MULTILINE_CPP_IS_BRIEF = YES
RECURSIVE = YES
EXCLUDE = ./tests ./build