Files
dl_old/third/python-cmake/cmake/include/CMakeLists.txt
T
2026-02-28 14:40:03 +08:00

15 lines
514 B
CMake
Vendored

# Install all the header files in Include/
set(includedir ${INCLUDE_BUILD_DIR})
file(GLOB_RECURSE hfiles RELATIVE ${includedir} "${includedir}/*")
foreach(file ${hfiles})
get_filename_component(path ${file} PATH)
if(WIN32)
file(COPY ${includedir}/${file} DESTINATION ${PROJECT_BINARY_DIR}/${INCLUDE_INSTALL_DIR}/${path})
endif()
if(INSTALL_DEVELOPMENT)
install(FILES ${includedir}/${file} DESTINATION ${INCLUDE_INSTALL_DIR}/${path} COMPONENT Development)
endif()
endforeach()