Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
44
3party/protobuf/CMakeLists.txt
Normal file
44
3party/protobuf/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
project(protobuf)
|
||||
|
||||
set(SRC
|
||||
config.h
|
||||
protobuf/src/google/protobuf/arena.cc
|
||||
protobuf/src/google/protobuf/extension_set.cc
|
||||
protobuf/src/google/protobuf/generated_message_util.cc
|
||||
protobuf/src/google/protobuf/io/coded_stream.cc
|
||||
protobuf/src/google/protobuf/io/zero_copy_stream.cc
|
||||
protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc
|
||||
protobuf/src/google/protobuf/message_lite.cc
|
||||
protobuf/src/google/protobuf/repeated_field.cc
|
||||
protobuf/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc
|
||||
protobuf/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc
|
||||
protobuf/src/google/protobuf/stubs/bytestream.cc
|
||||
protobuf/src/google/protobuf/stubs/common.cc
|
||||
protobuf/src/google/protobuf/stubs/int128.cc
|
||||
protobuf/src/google/protobuf/stubs/once.cc
|
||||
protobuf/src/google/protobuf/stubs/status.cc
|
||||
protobuf/src/google/protobuf/stubs/statusor.cc
|
||||
protobuf/src/google/protobuf/stubs/stringpiece.cc
|
||||
protobuf/src/google/protobuf/stubs/stringprintf.cc
|
||||
protobuf/src/google/protobuf/stubs/structurally_valid.cc
|
||||
protobuf/src/google/protobuf/stubs/strutil.cc
|
||||
protobuf/src/google/protobuf/stubs/time.cc
|
||||
protobuf/src/google/protobuf/wire_format_lite.cc
|
||||
)
|
||||
|
||||
add_library(${PROJECT_NAME} ${SRC})
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PRIVATE . ../../
|
||||
PUBLIC protobuf/src
|
||||
)
|
||||
|
||||
if(NOT PLATFORM_WIN)
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_PTHREAD)
|
||||
endif ()
|
||||
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE
|
||||
$<$<CXX_COMPILER_ID:AppleClang,Clang>:-Wno-shorten-64-to-32>
|
||||
$<$<CXX_COMPILER_ID:AppleClang,Clang,GNU>:-Wno-deprecated-declarations>
|
||||
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-sign-compare>
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue