1
0
mirror of https://github.com/fumiama/simple-crypto.git synced 2026-06-25 01:20:23 +08:00
This commit is contained in:
fumiama
2021-12-11 17:36:08 +08:00
parent bd25ddf9f6
commit 80c7ea2afc
6 changed files with 476 additions and 194 deletions

View File

@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 2.6)
project(simple-md5-lib C)
project(simple-crypto C)
SET(CMAKE_BUILD_TYPE "Release")
include(TestBigEndian)
@@ -10,10 +10,11 @@ endif()
set(TEST 0)
if(TEST)
add_definitions(-DTEST_SIMPLE_MD5_LIB)
add_executable(smd5 simplemd5.c)
add_definitions(-DTEST_SIMPLE_CRYPTO)
add_executable(smd5 md5.c)
add_executable(stea tea.c)
else()
add_library(smd5 SHARED simplemd5.c)
INSTALL(TARGETS smd5 LIBRARY DESTINATION lib)
INSTALL(FILES simplemd5.h DESTINATION include)
add_library(scrypto SHARED md5.c tea.c)
INSTALL(TARGETS scrypto LIBRARY DESTINATION lib)
INSTALL(FILES simplecrypto.h DESTINATION include)
endif()