mirror of
https://github.com/fumiama/simple-protobuf.git
synced 2026-06-05 08:20:25 +08:00
规范化Cmake
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.0.0)
|
||||
project(simple-protobuf)
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
project(simple-protobuf C)
|
||||
|
||||
include(TestBigEndian)
|
||||
test_big_endian(isBigEndian)
|
||||
@@ -9,4 +9,7 @@ endif()
|
||||
|
||||
add_library(spb SHARED protobuf.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)
|
||||
|
||||
Reference in New Issue
Block a user