This commit adds 'static_nnfw_util' target which provides a static
nnfw_util library (to make it easy to deploy binaries).
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
add_library(nnfw_util SHARED ${NNFW_UTILITY_SRCS})
target_include_directories(nnfw_util PUBLIC ${NNFW_INCLUDE_DIR})
+add_library(static_nnfw_util STATIC ${NNFW_UTILITY_SRCS})
+target_include_directories(static_nnfw_util PUBLIC ${NNFW_INCLUDE_DIR})
+set_target_properties(static_nnfw_util PROPERTIES POSITION_INDEPENDENT_CODE ON)
+
install(TARGETS nnfw_util
RUNTIME DESTINATION bin COMPONENT libraries
LIBRARY DESTINATION lib COMPONENT libraries)