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

12 lines
278 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(test test.c)
target_link_libraries(test spb)