summaryrefslogtreecommitdiff
path: root/tools/kbenchmark/CMakeLists.txt
blob: ebf9a67254ccff30b45945d57bb12ff0d8ec1b99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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_compile_options(kbenchmark PRIVATE -Wno-psabi)
target_include_directories(kbenchmark PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(kbenchmark PUBLIC nonius)
target_link_libraries(kbenchmark PUBLIC dl)
target_link_libraries(kbenchmark PUBLIC pthread boost_program_options boost_system boost_filesystem)
install(TARGETS kbenchmark DESTINATION bin)

# kernel libraries
add_subdirectory(kernels)