1
0
mirror of https://github.com/fumiama/simple-crypto.git synced 2026-06-08 20:20:25 +08:00
Files
simple-crypto/CMakeLists.txt
2021-05-29 13:58:23 +08:00

20 lines
473 B
CMake

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()