27
27
if (DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND)
28
28
29
29
SET (SOURCES Doxyfile_c Doxyfile_cpp Doxyfile_f90 Doxyfile_f77 preamble.h)
30
+ set_directory_properties (PROPERTIES
31
+ ADDITIONAL_MAKE_CLEAN_FILES "html-c html-cpp html-f77 html-f90" )
30
32
31
33
foreach (F ${SOURCES} )
32
34
configure_file (${F} ${F} @ONLY)
@@ -39,7 +41,7 @@ if (DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND)
39
41
)
40
42
install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /html-c
41
43
DESTINATION ${CMAKE_INSTALL_DOCDIR} /api
42
- COMPONENT Documentation )
44
+ COMPONENT html OPTIONAL )
43
45
44
46
add_dependencies (html html_c_api_doc)
45
47
@@ -52,7 +54,7 @@ if (DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND)
52
54
53
55
install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /html-cpp
54
56
DESTINATION ${CMAKE_INSTALL_DOCDIR} /api
55
- COMPONENT Documentation )
57
+ COMPONENT html OPTIONAL )
56
58
57
59
add_dependencies (html html_cpp_api_doc)
58
60
endif ()
@@ -82,7 +84,7 @@ if (DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND)
82
84
83
85
install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /html-f90
84
86
DESTINATION ${CMAKE_INSTALL_DOCDIR} /api
85
- COMPONENT Documentation )
87
+ COMPONENT html OPTIONAL )
86
88
87
89
add_dependencies (html html_f90_api_doc)
88
90
endif ()
@@ -96,9 +98,15 @@ if (DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND)
96
98
97
99
install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /html-f77
98
100
DESTINATION ${CMAKE_INSTALL_DOCDIR} /api
99
- COMPONENT Documentation )
101
+ COMPONENT html OPTIONAL )
100
102
add_dependencies (html html_f77_api_doc)
101
103
endif ()
102
104
105
+ add_custom_target (install -html
106
+ ${CMAKE_COMMAND}
107
+ -D "CMAKE_INSTALL_COMPONENT=html"
108
+ -P "${CMAKE_CURRENT_BINARY_DIR} /cmake_install.cmake" )
109
+ add_dependencies (install -html html)
110
+
103
111
endif (DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND)
104
112
0 commit comments