This commit revises CMake script to support multiple NN API bindings.
To support multiple NN API bindings, CMake sciprt for simple logging NN API binding
is revised not to install libneuralnetworks.so into lib.
In addition, directory structres are revised.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
Let's type the following commands, and see what happens!
```
$ make install
-$ USE_NNAPI=1 LD_LIBRARY_PATH="$(pwd)/Product/out/lib" Product/out/bin/tflite_run [T/F Lite Flatbuffer Model Path]
+$ USE_NNAPI=1 LD_LIBRARY_PATH="$(pwd)/Product/obj/tools/nnapi_bindings/bindings/logging" Product/out/bin/tflite_run [T/F Lite Flatbuffer Model Path]
```
add_subdirectory(tflite_run)
-add_subdirectory(nnapi_logging)
+add_subdirectory(nnapi_bindings)
--- /dev/null
+set(NNAPI_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
+
+add_subdirectory(bindings)
--- /dev/null
+add_subdirectory(logging)
file(GLOB_RECURSE NNAPI_LOGGING_SRCS "src/*.cc")
add_library(neuralnetworks SHARED ${NNAPI_LOGGING_SRCS})
-target_include_directories(neuralnetworks PUBLIC ${CMAKE_SOURCE_DIR}/include)
+target_include_directories(neuralnetworks PUBLIC ${NNAPI_INCLUDE_DIR})
target_include_directories(neuralnetworks PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
-
-install(TARGETS neuralnetworks DESTINATION lib)