From: 채성우/On-Device Lab(SR)/Engineer/삼성전자 Date: Thu, 5 Dec 2019 08:22:17 +0000 (+0900) Subject: [tf2tflite] make proto sources shared (#9409) X-Git-Tag: accepted/tizen/unified/20191209.144032~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=590cfea3fafd959818e4c8a4ea83233a9705b490;p=platform%2Fcore%2Fml%2Fnnfw.git [tf2tflite] make proto sources shared (#9409) * [tf2tflite] make proto sources shared This commit changes proto sources from STATIC to SHARED. Signed-off-by: seongwoo * add install command --- diff --git a/compiler/tf2tflite/CMakeLists.txt b/compiler/tf2tflite/CMakeLists.txt index 23c3849..663563e 100644 --- a/compiler/tf2tflite/CMakeLists.txt +++ b/compiler/tf2tflite/CMakeLists.txt @@ -23,10 +23,11 @@ Protobuf_Generate(CUSTOMOP_INFO_PROTO "./proto" CustomOpInfo.proto) -add_library(tf2tflite_customop_info_proto STATIC ${CUSTOMOP_INFO_PROTO_SOURCES}) +add_library(tf2tflite_customop_info_proto SHARED ${CUSTOMOP_INFO_PROTO_SOURCES}) set_target_properties(tf2tflite_customop_info_proto PROPERTIES POSITION_INDEPENDENT_CODE ON) target_include_directories(tf2tflite_customop_info_proto PUBLIC ${CUSTOMOP_INFO_PROTO_INCLUDE_DIRS}) target_link_libraries(tf2tflite_customop_info_proto PUBLIC libprotobuf) +install(TARGETS tf2tflite_customop_info_proto DESTINATION lib) file(GLOB_RECURSE SOURCES "src/*.cpp")