Skip to content

Commit

Permalink
Try fix Doxygen action
Browse files Browse the repository at this point in the history
  • Loading branch information
ceztko committed Dec 20, 2023
1 parent 1ecb7d2 commit 5246bf5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@ jobs:
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4

- name: Install Doxygen
run: |
sudo apt-get update
sudo apt-get install -y doxygen
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DPODOFO_BUILD_DOC_ONLY=True

- name: Generate Doxygen Documentation
run: doxygen ${{ github.workspace }}/Doxyfile

Expand Down
23 changes: 14 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,20 @@ set(PODOFO_VERSION_PATCH "0" CACHE STRING "Patchlevel part of podofo version num
set(PODOFO_VERSION "${PODOFO_VERSION_MAJOR}.${PODOFO_VERSION_MINOR}.${PODOFO_VERSION_PATCH}")
set(PODOFO_SOVERSION "3")

#
# Doxyfile
#
set(PROJECT_NUMBER "${PODOFO_VERSION}")
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
@ONLY
)
find_package(Doxygen)
if (DOXYGEN_FOUND)
set(PROJECT_NUMBER "${PODOFO_VERSION}")
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
@ONLY
)
# TODO: Add doxygen target
endif()

if(PODOFO_BUILD_DOC_ONLY)
return()
endif()

#
# Main includes
Expand Down

0 comments on commit 5246bf5

Please sign in to comment.