Skip to content

Commit

Permalink
cond
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr committed Aug 7, 2024
1 parent b5510c0 commit ab65df1
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,14 @@ file(
list(APPEND .gitignore CMakeLists.txt CMakePresets.json README.md task.cmake)
add_custom_target(lint COMMAND codespell -w ${all_files} WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")

find_package(Doxygen REQUIRED)
set(DOXYGEN_EXCLUDE "${CMAKE_BINARY_DIR}")
set(DOXYGEN_EXTRACT_ALL YES)
set(DOXYGEN_INCLUDE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/include")
doxygen_add_docs(docs "${PROJECT_SOURCE_DIR}")
find_package(Doxygen)
if(Doxygen_FOUND)
set(DOXYGEN_EXCLUDE "${CMAKE_BINARY_DIR}")
set(DOXYGEN_EXTRACT_ALL YES)
set(DOXYGEN_INCLUDE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/include")
doxygen_add_docs(docs "${PROJECT_SOURCE_DIR}")

add_custom_target(preview COMMAND python -m http.server WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html")
add_dependencies(preview docs)
add_custom_target(preview COMMAND python -m http.server WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html")
add_dependencies(preview docs)
endif()
endif()

0 comments on commit ab65df1

Please sign in to comment.