2013-11-16 02:34:43 +08:00
|
|
|
if (NOT LIBCXX_INSTALL_SUPPORT_HEADERS)
|
|
|
|
set(LIBCXX_SUPPORT_HEADER_PATTERN PATTERN "support" EXCLUDE)
|
|
|
|
endif()
|
2014-10-24 00:51:12 +08:00
|
|
|
set(LIBCXX_HEADER_PATTERN
|
2013-11-16 02:34:43 +08:00
|
|
|
PATTERN "*"
|
|
|
|
PATTERN "CMakeLists.txt" EXCLUDE
|
|
|
|
PATTERN ".svn" EXCLUDE
|
|
|
|
${LIBCXX_SUPPORT_HEADER_PATTERN}
|
2014-10-24 00:51:12 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY .
|
|
|
|
DESTINATION "${CMAKE_BINARY_DIR}/include/c++/v1"
|
|
|
|
FILES_MATCHING
|
|
|
|
${LIBCXX_HEADER_PATTERN}
|
|
|
|
)
|
|
|
|
|
2014-12-13 06:52:58 +08:00
|
|
|
if (LIBCXX_INSTALL_HEADERS)
|
|
|
|
install(DIRECTORY .
|
|
|
|
DESTINATION include/c++/v1
|
2015-08-20 01:41:53 +08:00
|
|
|
COMPONENT libcxx
|
2014-12-13 06:52:58 +08:00
|
|
|
FILES_MATCHING
|
|
|
|
${LIBCXX_HEADER_PATTERN}
|
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
2013-11-16 02:34:43 +08:00
|
|
|
)
|
2014-12-13 06:52:58 +08:00
|
|
|
endif()
|