1 if (NOT BUILD_RUNTIME_NNFW_API_TEST)
3 endif(NOT BUILD_RUNTIME_NNFW_API_TEST)
6 message(STATUS "Skip build NNFW API test: no runtime build")
10 nnfw_find_package(GTest)
12 set(RUNTIME_NNFW_API_TEST nnfw_api_gtest)
13 file(GLOB_RECURSE RUNTIME_NNFW_API_TEST_SRC "src/*.cc" "src/*.cpp")
15 add_executable(${RUNTIME_NNFW_API_TEST} ${RUNTIME_NNFW_API_TEST_SRC})
17 nnfw_find_package(ARMCompute QUIET)
19 target_compile_definitions(${RUNTIME_NNFW_API_TEST} PRIVATE TEST_ACL_BACKEND)
20 endif(ARMCompute_FOUND)
22 set(RUNTIME_NNFW_API_TEST_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/include
23 ${CMAKE_CURRENT_SOURCE_DIR}/src)
24 target_include_directories(${RUNTIME_NNFW_API_TEST} PRIVATE ${RUNTIME_NNFW_API_TEST_INCLUDE})
26 target_link_libraries(${RUNTIME_NNFW_API_TEST} nnfw-dev)
27 target_link_libraries(${RUNTIME_NNFW_API_TEST} gtest gmock)
28 target_link_libraries(${RUNTIME_NNFW_API_TEST} ${LIB_PTHREAD} dl)
29 target_link_libraries(${RUNTIME_NNFW_API_TEST} circle_schema)
31 install(TARGETS ${RUNTIME_NNFW_API_TEST} DESTINATION unittest_standalone)