mirror of
https://github.com/fumiama/simple-protobuf.git
synced 2026-06-22 03:20:32 +08:00
增加编译静态库
This commit is contained in:
@@ -8,8 +8,10 @@ if (${isBigEndian})
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(spb SHARED protobuf.c)
|
add_library(spb SHARED protobuf.c)
|
||||||
|
add_library(spb_static STATIC 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 LIBRARY DESTINATION lib)
|
||||||
|
INSTALL(TARGETS spb_static ARCHIVE DESTINATION lib)
|
||||||
INSTALL(FILES simple_protobuf.h DESTINATION include)
|
INSTALL(FILES simple_protobuf.h DESTINATION include)
|
||||||
Reference in New Issue
Block a user