mirror of
https://github.com/fumiama/simple-protobuf.git
synced 2026-06-07 09:20:24 +08:00
增加编译静态库
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user