mirror of
https://github.com/fumiama/simple-protobuf.git
synced 2026-06-23 12:00:36 +08:00
实现
This commit is contained in:
13
CMakeLists.txt
Normal file
13
CMakeLists.txt
Normal 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)
|
||||
Reference in New Issue
Block a user