1
0
mirror of https://github.com/fumiama/simple-protobuf.git synced 2026-06-07 09:20:24 +08:00

增加编译静态库

This commit is contained in:
fumiama
2021-05-18 16:27:16 +08:00
parent 7cc46c8a03
commit 73d1f93e0d

View File

@@ -8,8 +8,10 @@ if (${isBigEndian})
endif()
add_library(spb SHARED protobuf.c)
add_library(spb_static STATIC protobuf.c)
add_executable(t test.c)
target_link_libraries(t spb)
INSTALL(TARGETS spb LIBRARY DESTINATION lib)
INSTALL(TARGETS spb_static ARCHIVE DESTINATION lib)
INSTALL(FILES simple_protobuf.h DESTINATION include)