From 73d1f93e0d27cc70c1ec190f933b02b0416a2cc9 Mon Sep 17 00:00:00 2001 From: fumiama Date: Tue, 18 May 2021 16:27:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=96=E8=AF=91=E9=9D=99?= =?UTF-8?q?=E6=80=81=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2641f9e..0d6dcf2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) \ No newline at end of file