1
0
mirror of https://github.com/fumiama/simple-protobuf.git synced 2026-06-13 13:40:31 +08:00

规范化Cmake

This commit is contained in:
fumiama
2021-05-18 16:13:17 +08:00
parent 05fa5921e6
commit cf91489ef4

View File

@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.0.0) cmake_minimum_required(VERSION 2.6)
project(simple-protobuf) project(simple-protobuf C)
include(TestBigEndian) include(TestBigEndian)
test_big_endian(isBigEndian) test_big_endian(isBigEndian)
@@ -10,3 +10,6 @@ endif()
add_library(spb SHARED protobuf.c) add_library(spb SHARED protobuf.c)
add_executable(t test.c) add_executable(t test.c)
target_link_libraries(t spb) target_link_libraries(t spb)
INSTALL(TARGETS spb LIBRARY DESTINATION lib)
INSTALL(TARGETS spb PUBLIC_HEADER DESTINATION include)