Skip to content

Commit

Permalink
add "memory_allocator.h" target to cmake (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej authored Jul 25, 2023
1 parent 5b7bc64 commit 07a9db4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime_lib/test_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 07a9db4

Please sign in to comment.