2012-11-01 17:20:06 +00:00
|
|
|
|
|
|
|
# Installing headers and preserving the directory structure
|
|
|
|
# Found here: http://www.semipol.de/archives/251
|
2013-12-29 09:02:12 +00:00
|
|
|
MACRO(INSTALL_HEADERS_WITH_DIRECTORY HEADER_LIST COMPONENT_NAME REMOVE_PREFIX)
|
2012-11-01 17:20:06 +00:00
|
|
|
|
|
|
|
FOREACH(HEADER ${${HEADER_LIST}})
|
|
|
|
STRING(REGEX MATCH "(.*)[/\\]" DIR ${HEADER})
|
2016-09-19 19:08:35 +00:00
|
|
|
STRING(REPLACE "${REMOVE_PREFIX}" "" DIR ${DIR})
|
2012-11-01 17:20:06 +00:00
|
|
|
INSTALL(FILES ${HEADER} DESTINATION include/${DIR} COMPONENT ${COMPONENT_NAME})
|
|
|
|
ENDFOREACH(HEADER)
|
|
|
|
|
|
|
|
ENDMACRO(INSTALL_HEADERS_WITH_DIRECTORY)
|
|
|
|
|