mirror of
https://github.com/fumiama/simple-crypto.git
synced 2026-06-25 01:20:23 +08:00
更改为lib
This commit is contained in:
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal 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()
|
||||
Reference in New Issue
Block a user