1# rga_allocator_malloc_demo 2add_executable(rga_allocator_malloc_demo 3 rga_allocator_malloc_demo.cpp 4) 5target_link_libraries(rga_allocator_malloc_demo 6 utils_obj 7 ${RGA_LIB} 8) 9install(TARGETS rga_allocator_malloc_demo DESTINATION ${CMAKE_INSTALL_BINDIR}) 10 11if (TARGET_SOC STREQUAL "RV1106") 12 # rga_allocator_dma32_demo 13 add_executable(rga_allocator_1106_cma_demo 14 rga_allocator_1106_cma_demo.cpp 15 ) 16 target_link_libraries(rga_allocator_1106_cma_demo 17 utils_obj 18 ${RGA_LIB} 19 ) 20 install(TARGETS rga_allocator_1106_cma_demo DESTINATION ${CMAKE_INSTALL_BINDIR}) 21else () 22 # rga_allocator_drm_demo 23 add_executable(rga_allocator_drm_demo 24 rga_allocator_drm_demo.cpp 25 ) 26 target_link_libraries(rga_allocator_drm_demo 27 utils_obj 28 ${RGA_LIB} 29 ) 30 install(TARGETS rga_allocator_drm_demo DESTINATION ${CMAKE_INSTALL_BINDIR}) 31 32 # rga_allocator_drm_phy_demo 33 add_executable(rga_allocator_drm_phy_demo 34 rga_allocator_drm_phy_demo.cpp 35 ) 36 target_link_libraries(rga_allocator_drm_phy_demo 37 utils_obj 38 ${RGA_LIB} 39 ) 40 install(TARGETS rga_allocator_drm_phy_demo DESTINATION ${CMAKE_INSTALL_BINDIR}) 41 42 # rga_allocator_dma_demo 43 add_executable(rga_allocator_dma_demo 44 rga_allocator_dma_demo.cpp 45 ) 46 target_link_libraries(rga_allocator_dma_demo 47 utils_obj 48 ${RGA_LIB} 49 ) 50 install(TARGETS rga_allocator_dma_demo DESTINATION ${CMAKE_INSTALL_BINDIR}) 51 52 # rga_allocator_dma_cache_demo 53 add_executable(rga_allocator_dma_cache_demo 54 rga_allocator_dma_cache_demo.cpp 55 ) 56 target_link_libraries(rga_allocator_dma_cache_demo 57 utils_obj 58 ${RGA_LIB} 59 ) 60 install(TARGETS rga_allocator_dma_cache_demo DESTINATION ${CMAKE_INSTALL_BINDIR}) 61 62 # rga_allocator_dma32_demo 63 add_executable(rga_allocator_dma32_demo 64 rga_allocator_dma32_demo.cpp 65 ) 66 target_link_libraries(rga_allocator_dma32_demo 67 utils_obj 68 ${RGA_LIB} 69 ) 70 install(TARGETS rga_allocator_dma32_demo DESTINATION ${CMAKE_INSTALL_BINDIR}) 71endif() 72