diff options
Diffstat (limited to 'runtimes/neurun/src/backend/cpu/CMakeLists.txt')
-rw-r--r-- | runtimes/neurun/src/backend/cpu/CMakeLists.txt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/runtimes/neurun/src/backend/cpu/CMakeLists.txt b/runtimes/neurun/src/backend/cpu/CMakeLists.txt index 95e9af687..dc4406a65 100644 --- a/runtimes/neurun/src/backend/cpu/CMakeLists.txt +++ b/runtimes/neurun/src/backend/cpu/CMakeLists.txt @@ -1,19 +1,18 @@ file(GLOB_RECURSE SOURCES "*.cc") -add_library(${LIB_NEURUN_BACKEND_CPU} STATIC ${SOURCES}) +add_library(${LIB_NEURUN_BACKEND_CPU} SHARED ${SOURCES}) target_include_directories(${LIB_NEURUN_BACKEND_CPU} PUBLIC ${NNFW_INCLUDE_DIR}) target_include_directories(${LIB_NEURUN_BACKEND_CPU} PUBLIC ${NEURUN_INCLUDE_DIR}) target_include_directories(${LIB_NEURUN_BACKEND_CPU} PUBLIC ${CMAKE_SOURCE_DIR}/externals/tensorflow) -target_link_libraries(${LIB_NEURUN_BACKEND_CPU} arm_compute) # TODO We should not need this target_link_libraries(${LIB_NEURUN_BACKEND_CPU} tensorflow-lite) -target_link_libraries(${LIB_NEURUN_BACKEND_CPU} nnfw_util) -target_link_libraries(${LIB_NEURUN_BACKEND_CPU} nnfw_support_nnapi) +target_link_libraries(${LIB_NEURUN_BACKEND_CPU} nnfw_lib_misc) +target_link_libraries(${LIB_NEURUN_BACKEND_CPU} nnfw_lib_cpp14) target_link_libraries(${LIB_NEURUN_BACKEND_CPU} ${LIB_NEURUN_KERNEL_CPU}) +target_link_libraries(${LIB_NEURUN_BACKEND_CPU} ${LIB_NEURUN}) target_compile_options(${LIB_NEURUN_BACKEND_CPU} PRIVATE -Wall -Wextra -Werror) -set_target_properties(${LIB_NEURUN_BACKEND_CPU} PROPERTIES POSITION_INDEPENDENT_CODE ON) set_target_properties(${LIB_NEURUN_BACKEND_CPU} PROPERTIES OUTPUT_NAME backend_cpu) install(TARGETS ${LIB_NEURUN_BACKEND_CPU} DESTINATION lib/neurun) |