From: 박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 Date: Wed, 2 May 2018 01:11:36 +0000 (+0900) Subject: Add 'NEON2SSE' as an external module (#185) X-Git-Tag: nncc_backup~2721 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3a33d32680357c7c707df17a1b368559c4c1788;p=platform%2Fcore%2Fml%2Fnnfw.git Add 'NEON2SSE' as an external module (#185) This commit adds 'NEON2SSE' library module (which provide a header-only neon2sse library target using NEON2SSESource) which is necessary to build tensorflow lite. Signed-off-by: Jonghyun Park --- diff --git a/cmake/packages/NEON2SSEConfig.cmake b/cmake/packages/NEON2SSEConfig.cmake new file mode 100644 index 0000000..c7f0c29 --- /dev/null +++ b/cmake/packages/NEON2SSEConfig.cmake @@ -0,0 +1,17 @@ +function(_NEON2SSE_import) + nncc_find_package(NEON2SSESource QUIET) + + if(NOT NEON2SSESource_FOUND) + set(NEON2SSE_FOUND FALSE PARENT_SCOPE) + return() + endif(NOT NEON2SSESource_FOUND) + + if(NOT TARGET neon2sse) + add_library(neon2sse INTERFACE) + target_include_directories(neon2sse INTERFACE "${NEON2SSESource_DIR}") + endif(NOT TARGET neon2sse) + + set(NEON2SSE_FOUND TRUE PARENT_SCOPE) +endfunction(_NEON2SSE_import) + +_NEON2SSE_import()