From af160d29061f0d49978f18610401e16d33f8dcbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 18 Apr 2022 16:20:49 +0800 Subject: [PATCH] add arcive --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ffed6d..79df9d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,9 @@ if(TEST) add_executable(stea tea.c) else() add_library(scrypto SHARED md5.c tea.c) + add_library(scrypto_static STATIC md5.c tea.c) + set_target_properties(scrypto_static PROPERTIES OUTPUT_NAME scrypto) INSTALL(TARGETS scrypto LIBRARY DESTINATION lib) + INSTALL(TARGETS scrypto_static ARCHIVE DESTINATION lib) INSTALL(FILES simplecrypto.h DESTINATION include) endif()