summaryrefslogtreecommitdiff
path: root/runtimes/neurun/src/kernel/cpu/CMakeLists.txt
blob: 436cb898c6517ca4fb7fac40653236cb4f27d758 (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 ${NNFW_INCLUDE_DIR})
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} tensorflow-lite)
target_link_libraries(${LIB_NEURUN_KERNEL_CPU} nnfw_lib_misc)

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)