File: CMakeLists.txt

package info (click to toggle)
libecpint 1.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 16,896 kB
  • sloc: xml: 31,587; cpp: 8,074; ansic: 922; python: 145; sh: 30; makefile: 15
file content (18 lines) | stat: -rw-r--r-- 778 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
find_package(Doxygen)

# Find all the public headers
get_target_property(LIBECPINT_PUBLIC_HEADER_DIR ecpint  INTERFACE_INCLUDE_DIRECTORIES)
file(GLOB_RECURSE LIBECPINT_PUBLIC_HEADERS ${LIBECPINT_PUBLIC_HEADER_DIR}/*.hpp)

#This will be the main output of our command
set(DOXYGEN_INDEX_FILE ${CMAKE_CURRENT_SOURCE_DIR}/html/index.html)

add_custom_command(OUTPUT ${DOXYGEN_INDEX_FILE}
                   DEPENDS ${LIBECPINT_PUBLIC_HEADERS}
                   COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
                   WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
                   MAIN_DEPENDENCY Doxyfile
                   COMMENT "Generating docs")

add_custom_target(Doxygen ALL DEPENDS ${DOXYGEN_INDEX_FILE})
set_target_properties(Doxygen PROPERTIES EXCLUDE_FROM_ALL TRUE)