X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=bb236a98fda4648a988a4568df935fe447fe7cc4;hb=307c12673a4ba43e205c815c7df01586334661b6;hp=7b19f2874800ed11900a6633b24cca6a03b7535a;hpb=fe0aca04cbc41327144813ca54ea37aafb866d25;p=apps%2Flow-level-can-service.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b19f28..bb236a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8) 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}) @@ -22,7 +22,7 @@ if(MSVC AND nanopb_MSVC_STATIC_RUNTIME) endforeach(flag_var) endif() -add_library(libprotobuf-nanopb STATIC +add_library(protobuf-nanopb STATIC pb.h pb_common.h pb_common.c @@ -31,7 +31,7 @@ add_library(libprotobuf-nanopb STATIC pb_decode.h pb_decode.c) -target_include_directories(libprotobuf-nanopb INTERFACE +target_include_directories(protobuf-nanopb INTERFACE $ ) @@ -41,7 +41,7 @@ if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR) 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