From 07a9db4091d8ef5a53928ccd57805e17c116a0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20R=C3=B6sti?= Date: Tue, 25 Jul 2023 14:52:15 -0600 Subject: [PATCH] add "memory_allocator.h" target to cmake (#555) --- runtime_lib/test_lib/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime_lib/test_lib/CMakeLists.txt b/runtime_lib/test_lib/CMakeLists.txt index 0a00e3a82d..1abe093090 100644 --- a/runtime_lib/test_lib/CMakeLists.txt +++ b/runtime_lib/test_lib/CMakeLists.txt @@ -46,6 +46,7 @@ install(FILES test_library.cpp DESTINATION ${CMAKE_INSTALL_PREFIX}/runtime_lib/$ set(xaienginePath ${VITIS_AIETOOLS_DIR}/include/drivers/aiengine) # Memory Allocator add_library(memory_allocator_ion STATIC memory_allocator_ion.cpp) +set_target_properties(memory_allocator_ion PROPERTIES PUBLIC_HEADER "memory_allocator.h") find_program(UNAME_EXEC uname) execute_process(COMMAND ${UNAME_EXEC} -r OUTPUT_VARIABLE KERNEL_RELEASE OUTPUT_STRIP_TRAILING_WHITESPACE) find_path(LINUX_HEADERS_PATH NAMES "linux/dma-buf.h" PATHS "/usr/src/kernels/${KERNEL_RELEASE}/include" REQUIRED) @@ -55,6 +56,7 @@ target_compile_definitions(memory_allocator_ion PRIVATE) install(TARGETS memory_allocator_ion ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/runtime_lib/${AIE_RUNTIME_TARGET}/test_lib/lib + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_PREFIX}/runtime_lib/${AIE_RUNTIME_TARGET}/test_lib/include ) if (VITIS_ROOT)