1
0
mirror of https://github.com/fumiama/simple-protobuf.git synced 2026-06-05 00:10:24 +08:00
Files
simple-protobuf/CMakeLists.txt
2021-05-17 20:30:18 +08:00

12 lines
272 B
CMake

cmake_minimum_required(VERSION 3.0.0)
project(simple-protobuf)
include(TestBigEndian)
test_big_endian(isBigEndian)
if (${isBigEndian})
add_definitions(-DWORDS_BIGENDIAN)
endif()
add_library(spb SHARED protobuf.c)
add_executable(t test.c)
target_link_libraries(t spb)