Skip to content

Commit 40a9278

Browse files
committed
Generate public header list
1 parent bdb1a6b commit 40a9278

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: CatCutifier/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
add_library (CatCutifier "CatCutifier.cpp" "CatCutifier.h")
2+
target_include_directories(CatCutifier PUBLIC .)
23

34
# Should install library properly here, but I'm focusing on just the docs

Diff for: docs/CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
find_package(Doxygen REQUIRED)
22
find_package(Sphinx REQUIRED)
33

4-
# The list of headers which we are documenting
5-
set(CAT_CUTIFIER_PUBLIC_HEADERS ${PROJECT_SOURCE_DIR}/CatCutifier/CatCutifier.h)
4+
# Find all the public headers
5+
get_target_property(CAT_CUTIFIER_PUBLIC_HEADER_DIR CatCutifier INTERFACE_INCLUDE_DIRECTORIES)
6+
file(GLOB_RECURSE CAT_CUTIFIER_PUBLIC_HEADERS
7+
${CAT_CUTIFIER_PUBLIC_HEADER_DIR}/*.h)
68

79
set(DOXYGEN_INPUT_DIR ${PROJECT_SOURCE_DIR}/CatCutifier)
810
set(DOXYGEN_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/doxygen)

0 commit comments

Comments
 (0)