Imported Upstream version 1.9.0
[platform/core/ml/nnfw.git] / compiler / souschef / CMakeLists.txt
1 nnas_find_package(Protobuf QUIET)
2
3 if(NOT Protobuf_FOUND)
4   message(STATUS "Build souschef: FAILED (missing Protobuf")
5   return()
6 endif(NOT Protobuf_FOUND)
7
8 file(GLOB_RECURSE SOURCES "src/*.cpp")
9
10 add_library(souschef STATIC ${SOURCES})
11 set_target_properties(souschef PROPERTIES POSITION_INDEPENDENT_CODE ON)
12 target_include_directories(souschef PUBLIC include)
13 target_link_libraries(souschef PUBLIC libprotobuf)