llvm-project/orc-rt/include/CMakeLists.txt
Lang Hames 3292edb7b4
[orc-rt] Add C and C++ APIs for WrapperFunctionResult. (#154927)
orc_rt_WrapperFunctionResult is a byte-buffer with inline storage and a
builtin error state. It is intended as a general purpose return type for
functions that return a serialized result (e.g. for communication across
ABIs or via IPC/RPC).

orc_rt_WrapperFunctionResult contains a small amount of inline storage,
allowing it to avoid heap-allocation for small return types (e.g. bools,
chars, pointers).
2025-08-22 21:18:30 +10:00

28 lines
716 B
CMake

set(ORC_RT_HEADERS
orc-rt-c/ExternC.h
orc-rt-c/WrapperFunctionResult.h
orc-rt-c/orc-rt.h
orc-rt/BitmaskEnum.h
orc-rt/Compiler.h
orc-rt/Error.h
orc-rt/Math.h
orc-rt/RTTI.h
orc-rt/WrapperFunctionResult.h
orc-rt/move_only_function.h
orc-rt/span.h
)
# TODO: Switch to filesets when we move to cmake-3.23.
add_library(orc-rt-headers INTERFACE)
target_include_directories(orc-rt-headers INTERFACE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)
set_property(TARGET orc-rt-headers
PROPERTY PUBLIC_HEADER ${ORC_RT_HEADERS}
)
install(TARGETS orc-rt-headers
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/
COMPONENT OrcRT_Development
)