We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fa60a2 commit e7a2270Copy full SHA for e7a2270
CMakeLists.txt
@@ -201,7 +201,12 @@ endif()
201
## install
202
#########################
203
if(MyHTML_INSTALL_HEADER)
204
- install(DIRECTORY "${PROJECT_DIR_API_HEADER}" DESTINATION "include" FILES_MATCHING PATTERN "*.h")
+ file(GLOB PROJECT_HEADER_DIRS "${PROJECT_DIR_API_HEADER}/*")
205
+ foreach(ITEM ${PROJECT_HEADER_DIRS})
206
+ if(IS_DIRECTORY "${ITEM}")
207
+ install(DIRECTORY "${ITEM}" DESTINATION "include" FILES_MATCHING PATTERN "*.h")
208
+ endif()
209
+ endforeach()
210
endif()
211
212
if(MyHTML_BUILD_SHARED)
0 commit comments