1 if (NOT LIBCXX_INSTALL_SUPPORT_HEADERS) 2 set(LIBCXX_SUPPORT_HEADER_PATTERN PATTERN "support" EXCLUDE) 3 endif() 4 set(LIBCXX_HEADER_PATTERN 5 PATTERN "*" 6 PATTERN "CMakeLists.txt" EXCLUDE 7 PATTERN ".svn" EXCLUDE 8 ${LIBCXX_SUPPORT_HEADER_PATTERN} 9 ) 10 11 file(COPY . 12 DESTINATION "${CMAKE_BINARY_DIR}/include/c++/v1" 13 FILES_MATCHING 14 ${LIBCXX_HEADER_PATTERN} 15 ) 16 17 if (LIBCXX_INSTALL_HEADERS) 18 install(DIRECTORY . 19 DESTINATION include/c++/v1 20 FILES_MATCHING 21 ${LIBCXX_HEADER_PATTERN} 22 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ 23 ) 24 endif() 25