summaryrefslogtreecommitdiff
path: root/tools/kbenchmark/CMakeLists.txt
blob: 71881ec7b893a27715c23cc59cb5a64e7ec835f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if(NOT BUILD_KBENCHMARK)
  return()
endif(NOT BUILD_KBENCHMARK)

nnfw_find_package(Nonius QUIET)

if(NOT Nonius_FOUND)
  return()
endif(NOT Nonius_FOUND)

nnfw_find_package(Boost QUIET)

if(NOT Boost_FOUND)
  return()
endif(NOT Boost_FOUND)

# driver
file(GLOB_RECURSE SOURCES "*.cc")

add_executable(kbenchmark ${SOURCES})
target_include_directories(kbenchmark PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(kbenchmark PUBLIC pthread boost_program_options boost_system boost_filesystem)
install(TARGETS kbenchmark DESTINATION bin)