annotate 3rdparty/vmime/cmake/Utils.cmake @ 0:a4671277546c tip

created the repository for the thymian project
author ferencd
date Tue, 17 Aug 2021 11:19:54 +0200
parents
children
rev   line source
ferencd@0 1
ferencd@0 2 # Installing headers and preserving the directory structure
ferencd@0 3 # Found here: http://www.semipol.de/archives/251
ferencd@0 4 MACRO(INSTALL_HEADERS_WITH_DIRECTORY HEADER_LIST COMPONENT_NAME REMOVE_PREFIX)
ferencd@0 5
ferencd@0 6 FOREACH(HEADER ${${HEADER_LIST}})
ferencd@0 7 STRING(REGEX MATCH "(.*)[/\\]" DIR ${HEADER})
ferencd@0 8 STRING(REPLACE "${CMAKE_SOURCE_DIR}/${REMOVE_PREFIX}" "" DIR ${DIR})
ferencd@0 9 INSTALL(FILES ${HEADER} DESTINATION include/${DIR} COMPONENT ${COMPONENT_NAME})
ferencd@0 10 ENDFOREACH(HEADER)
ferencd@0 11
ferencd@0 12 ENDMACRO(INSTALL_HEADERS_WITH_DIRECTORY)
ferencd@0 13