1
0
mirror of https://github.com/fumiama/simple-crypto.git synced 2026-06-25 01:20:23 +08:00

更改为lib

This commit is contained in:
fumiama
2021-05-29 13:58:23 +08:00
parent 5b2587f133
commit bd25ddf9f6
5 changed files with 120 additions and 63 deletions

19
CMakeLists.txt Normal file
View File

@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 2.6)
project(simple-md5-lib C)
SET(CMAKE_BUILD_TYPE "Release")
include(TestBigEndian)
test_big_endian(isBigEndian)
if (${isBigEndian})
add_definitions(-DWORDS_BIGENDIAN)
endif()
set(TEST 0)
if(TEST)
add_definitions(-DTEST_SIMPLE_MD5_LIB)
add_executable(smd5 simplemd5.c)
else()
add_library(smd5 SHARED simplemd5.c)
INSTALL(TARGETS smd5 LIBRARY DESTINATION lib)
INSTALL(FILES simplemd5.h DESTINATION include)
endif()