Copy wx/private headers after wxWidgets install

wxWidgets 3.3 cmake install doesn't include private headers.
OrcaSlicer uses some private headers for accessibility support.
Add a post-install step to copy the private headers directory.
This commit is contained in:
SoftFever
2026-03-25 12:15:08 +08:00
parent 7658cf9076
commit f77e7d833b

View File

@@ -56,6 +56,17 @@ orcaslicer_add_cmake_project(
-DwxUSE_NANOSVG=OFF
)
# wxWidgets 3.3 cmake install doesn't include private headers.
# OrcaSlicer uses some of the private headers (for accessibility support).
# Copy the private headers directory after install.
ExternalProject_Add_Step(dep_wxWidgets copy_private_headers
DEPENDEES install
COMMENT "Copying wxWidgets private headers"
COMMAND ${CMAKE_COMMAND} -E copy_directory
<SOURCE_DIR>/include/wx/private
${DESTDIR}/include/wx-3.3/wx/private
)
if (MSVC)
add_debug_dep(dep_wxWidgets)
endif ()