Skip to content

Commit dd3bd7e

Browse files
authored
Install headers from runtime/executor and extension/module in CMake build (#12175)
This isn't a comprehensive rework of how we do installation, but these headers were missing and now they're not.
1 parent 38d7fc0 commit dd3bd7e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,12 @@ install(
449449
FILES_MATCHING
450450
PATTERN "*.h"
451451
)
452+
install(
453+
DIRECTORY runtime/executor/
454+
DESTINATION include/executorch/runtime/executor
455+
FILES_MATCHING
456+
PATTERN "*.h"
457+
)
452458
install(
453459
DIRECTORY runtime/kernel/
454460
DESTINATION include/executorch/runtime/kernel
@@ -546,6 +552,12 @@ endif()
546552

547553
if(EXECUTORCH_BUILD_EXTENSION_MODULE)
548554
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/extension/module)
555+
install(
556+
DIRECTORY extension/module/
557+
DESTINATION include/executorch/extension/module
558+
FILES_MATCHING
559+
PATTERN "*.h"
560+
)
549561
endif()
550562

551563
if(EXECUTORCH_BUILD_EXTENSION_LLM)

0 commit comments

Comments
 (0)