1
0
mirror of https://github.com/fumiama/simple-protobuf.git synced 2026-06-23 12:00:36 +08:00
This commit is contained in:
fumiama
2021-05-17 16:48:38 +08:00
parent d2ea64d3fa
commit e0b88c0c63
7 changed files with 255 additions and 1 deletions

13
CMakeLists.txt Normal file
View File

@@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 3.0.0)
project(simple-protobuf)
include(TestBigEndian)
test_big_endian(isBigEndian)
if (${isBigEndian})
add_library(spb SHARED protobuf_be.c)
else()
add_library(spb SHARED protobuf_le.c)
endif()
add_executable(test test.c)
target_link_libraries(test spb)