Add 'NEON2SSE' as an external module (#185)
author박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 2 May 2018 01:11:36 +0000 (10:11 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 2 May 2018 01:11:36 +0000 (10:11 +0900)
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 <jh1302.park@samsung.com>
cmake/packages/NEON2SSEConfig.cmake [new file with mode: 0644]

diff --git a/cmake/packages/NEON2SSEConfig.cmake b/cmake/packages/NEON2SSEConfig.cmake
new file mode 100644 (file)
index 0000000..c7f0c29
--- /dev/null
@@ -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()