2015-05-31 09:28:34 +00:00
|
|
|
set(libprotobuf_lite_files
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/arena.cc
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/arenastring.cc
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/extension_set.cc
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/generated_message_util.cc
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/io/coded_stream.cc
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/io/zero_copy_stream.cc
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/io/zero_copy_stream_impl_lite.cc
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/message_lite.cc
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/repeated_field.cc
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc
|
2015-06-16 01:21:48 +00:00
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/bytestream.cc
|
2015-05-31 09:28:34 +00:00
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/common.cc
|
2015-08-21 18:18:45 +00:00
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/int128.cc
|
2015-05-31 09:28:34 +00:00
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/once.cc
|
2015-06-16 01:21:48 +00:00
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/status.cc
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/statusor.cc
|
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/stringpiece.cc
|
2015-05-31 09:28:34 +00:00
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/stringprintf.cc
|
2015-08-26 00:06:33 +00:00
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/structurally_valid.cc
|
2015-06-16 04:42:57 +00:00
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/strutil.cc
|
2015-06-16 01:21:48 +00:00
|
|
|
${protobuf_source_dir}/src/google/protobuf/stubs/time.cc
|
2015-05-31 09:28:34 +00:00
|
|
|
${protobuf_source_dir}/src/google/protobuf/wire_format_lite.cc
|
|
|
|
)
|
|
|
|
|
2015-10-14 23:56:48 +00:00
|
|
|
add_library(libprotobuf-lite ${protobuf_SHARED_OR_STATIC}
|
|
|
|
${libprotobuf_lite_files})
|
2015-05-31 09:28:34 +00:00
|
|
|
target_link_libraries(libprotobuf-lite ${CMAKE_THREAD_LIBS_INIT})
|
2015-07-28 23:18:35 +00:00
|
|
|
target_include_directories(libprotobuf-lite PUBLIC ${protobuf_source_dir}/src)
|
2015-10-14 23:56:48 +00:00
|
|
|
if(MSVC AND protobuf_BUILD_SHARED_LIBS)
|
|
|
|
target_compile_definitions(libprotobuf-lite
|
|
|
|
PUBLIC PROTOBUF_USE_DLLS
|
|
|
|
PRIVATE LIBPROTOBUF_EXPORTS)
|
|
|
|
endif()
|
2015-05-31 09:28:34 +00:00
|
|
|
set_target_properties(libprotobuf-lite PROPERTIES
|
2015-09-17 10:00:12 +00:00
|
|
|
OUTPUT_NAME ${LIB_PREFIX}protobuf-lite
|
|
|
|
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}")
|