summaryrefslogtreecommitdiff
path: root/compiler/caffegen/CMakeLists.txt
blob: b963b5294ddabc0b639d22231573d6b823718982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
nnas_find_package(Caffe QUIET)

if(NOT Caffe_FOUND)
  return()
endif(NOT Caffe_FOUND)

file(GLOB_RECURSE SOURCES "src/*.cpp")

add_executable(caffegen ${SOURCES})
target_link_libraries(caffegen cli)
# NOTE "Caffe" package provides both caffe and caffeproto target
# NOTE "caffeproto" is linked to "caffe"
target_link_libraries(caffegen caffe)