find_library(edgetpu_LIBRARY libedgetpu.so HINTS "/usr/lib" "/usr/local/lib" "/opt/local/lib" PATH_SUFFIXES "arm-linux-gnueabihf" "aarch64-linux-gnu")
find_path(edgetpu_INCLUDE edgetpu.h HINTS "/usr/include" "/usr/local/include" "/opt/local/include")

if (edgetpu_LIBRARY AND edgetpu_INCLUDE)
    set(EDGETPU_FOUND TRUE)
    add_definitions( -DBUILD_EDGETPU=TRUE )

    message(STATUS "Edge TPU found:")
    message(STATUS "    library at: ${edgetpu_LIBRARY}")
    message(STATUS "    include path: ${edgetpu_INCLUDE}")
endif ()
