project(nanopb C)
-set(nanopb_VERSION_STRING nanopb-0.3.7-dev)
+set(nanopb_VERSION_STRING nanopb-0.3.8-dev)
string(REPLACE "nanopb-" "" nanopb_VERSION ${nanopb_VERSION_STRING})
endforeach(flag_var)
endif()
-add_library(libprotobuf-nanopb STATIC
+add_library(protobuf-nanopb STATIC
pb.h
pb_common.h
pb_common.c
pb_decode.h
pb_decode.c)
-target_include_directories(libprotobuf-nanopb INTERFACE
+target_include_directories(protobuf-nanopb INTERFACE
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
set(CMAKE_INSTALL_CMAKEDIR "lib/cmake/nanopb")
endif()
-install(TARGETS libprotobuf-nanopb EXPORT nanopb-targets
+install(TARGETS protobuf-nanopb EXPORT nanopb-targets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(EXPORT nanopb-targets