• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1set(libprotobuf_lite_files
2  ${protobuf_source_dir}/src/google/protobuf/arena.cc
3  ${protobuf_source_dir}/src/google/protobuf/arenastring.cc
4  ${protobuf_source_dir}/src/google/protobuf/extension_set.cc
5  ${protobuf_source_dir}/src/google/protobuf/generated_message_util.cc
6  ${protobuf_source_dir}/src/google/protobuf/io/coded_stream.cc
7  ${protobuf_source_dir}/src/google/protobuf/io/zero_copy_stream.cc
8  ${protobuf_source_dir}/src/google/protobuf/io/zero_copy_stream_impl_lite.cc
9  ${protobuf_source_dir}/src/google/protobuf/message_lite.cc
10  ${protobuf_source_dir}/src/google/protobuf/repeated_field.cc
11  ${protobuf_source_dir}/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc
12  ${protobuf_source_dir}/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc
13  ${protobuf_source_dir}/src/google/protobuf/stubs/bytestream.cc
14  ${protobuf_source_dir}/src/google/protobuf/stubs/common.cc
15  ${protobuf_source_dir}/src/google/protobuf/stubs/int128.cc
16  ${protobuf_source_dir}/src/google/protobuf/stubs/once.cc
17  ${protobuf_source_dir}/src/google/protobuf/stubs/status.cc
18  ${protobuf_source_dir}/src/google/protobuf/stubs/statusor.cc
19  ${protobuf_source_dir}/src/google/protobuf/stubs/stringpiece.cc
20  ${protobuf_source_dir}/src/google/protobuf/stubs/stringprintf.cc
21  ${protobuf_source_dir}/src/google/protobuf/stubs/structurally_valid.cc
22  ${protobuf_source_dir}/src/google/protobuf/stubs/strutil.cc
23  ${protobuf_source_dir}/src/google/protobuf/stubs/time.cc
24  ${protobuf_source_dir}/src/google/protobuf/wire_format_lite.cc
25)
26
27add_library(libprotobuf-lite ${protobuf_SHARED_OR_STATIC}
28  ${libprotobuf_lite_files})
29target_link_libraries(libprotobuf-lite ${CMAKE_THREAD_LIBS_INIT})
30target_include_directories(libprotobuf-lite PUBLIC ${protobuf_source_dir}/src)
31if(MSVC AND protobuf_BUILD_SHARED_LIBS)
32  target_compile_definitions(libprotobuf-lite
33    PUBLIC  PROTOBUF_USE_DLLS
34    PRIVATE LIBPROTOBUF_EXPORTS)
35endif()
36set_target_properties(libprotobuf-lite PROPERTIES
37    OUTPUT_NAME ${LIB_PREFIX}protobuf-lite
38    DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}")
39