Now `BENCHMARK_ACL_BUILD=1 make build` runs building benchmark/acl.
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
NPROCS:=1
OBS_BUILD?=0
COVERAGE_BUILD?=0
+BENCHMARK_ACL_BUILD?=0
OPTIONS?=
# make TARGET and TYPE to lowercase
OPTIONS+= -DCOVERAGE_BUILD=0
endif
+ifeq ($(BENCHMARK_ACL_BUILD),1)
+ OPTIONS+= -DBUILD_BENCHMARK_ACL=1
+endif
+
# Get number of processors (linux only for now)
ifeq ($(HOST_OS),linux)
NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
add_library(arm_compute_benchmark SHARED "Benchmark.cpp")
target_include_directories(arm_compute_benchmark PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
-target_link_libraries(arm_compute_benchmark arm_compute_graph)
+target_include_directories(arm_compute_benchmark PUBLIC ${NNFW_ACL_INCLUDES})
+target_link_libraries(arm_compute_benchmark ${NNFW_ACL_LIBS})
+install(TARGETS arm_compute_benchmark DESTINATION lib)
# GoogLeNet benchmark
add_executable(benchmark_googlenet "benchmark_googlenet.cpp")
# MobileNet benchmark
add_executable(benchmark_mobilenet "benchmark_mobilenet.cpp")
target_link_libraries(benchmark_mobilenet arm_compute_benchmark)
+
+install(TARGETS benchmark_googlenet benchmark_inception_v3 benchmark_mobilenet DESTINATION bin)