Using google protobuf with libraries in cmake on Windows, Visual Studio 2013
问题 I have a CMake project with several sub-directories and library modules that eventually get built into client and server libraries, and those libraries are used from executable to test them. I am trying to use Google's protobuf library inside one of those libraries. I am creating my sub-library as follows: include_directories( . ../rendering_backend ../shared ${MY_THIRDPARTY_DIR}/protobuf/include ) add_library(Client STATIC client.cpp client.hpp ../common.hpp ../shared/protobufs/my_bufs.pb.cc