--- /dev/null
+function(_Abseil_import)
+ nncc_find_package(AbseilSource QUIET)
+
+ if(NOT AbseilSource_FOUND)
+ message("Abseil: NOT FOUND (Cannot access source)")
+ set(Abseil_FOUND FALSE PARENT_SCOPE)
+ return()
+ endif(NOT AbseilSource_FOUND)
+
+ # NOTE Although abseil itself is not a header-only library, but TensorFlow Lite
+ # currently uses only its header
+ #
+ # TODO Properly import abseil-cpp library
+ if(NOT TARGET abseil)
+ add_library(abseil INTERFACE)
+ target_include_directories(abseil SYSTEM INTERFACE "${AbseilSource_DIR}")
+ endif(NOT TARGET abseil)
+
+ set(Abseil_FOUND TRUE PARENT_SCOPE)
+endfunction(_Abseil_import)
+
+_Abseil_import()