summaryrefslogtreecommitdiff
path: root/runtimes/neurun/backend/cpu/kernel/CMakeLists.txt
blob: 1f35ce9751d86cd202f83e271f33772851cae662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
file(GLOB SOURCES "*.cc")

add_library(${LIB_NEURUN_KERNEL_CPU} STATIC ${SOURCES})

target_include_directories(${LIB_NEURUN_KERNEL_CPU} PUBLIC ${NEURUN_INCLUDE_DIR})
target_include_directories(${LIB_NEURUN_KERNEL_CPU} PUBLIC ${CMAKE_SOURCE_DIR}/externals/tensorflow)

target_link_libraries(${LIB_NEURUN_KERNEL_CPU} nnapi-header)
target_link_libraries(${LIB_NEURUN_KERNEL_CPU} tensorflow-lite)
target_link_libraries(${LIB_NEURUN_KERNEL_CPU} nnfw_lib_misc nnfw_lib_cker)

set_target_properties(${LIB_NEURUN_KERNEL_CPU} PROPERTIES POSITION_INDEPENDENT_CODE ON)
set_target_properties(${LIB_NEURUN_KERNEL_CPU} PROPERTIES OUTPUT_NAME kernel_cpu)
install(TARGETS ${LIB_NEURUN_KERNEL_CPU} DESTINATION lib/neurun)