94b2861243
Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
31 lines
384 B
CMake
31 lines
384 B
CMake
include_directories(../../include)
|
|
|
|
if (${ARCH} STREQUAL "x86_64")
|
|
set(
|
|
MD5_ARCH_SOURCES
|
|
|
|
md5-x86_64.${ASM_EXT}
|
|
)
|
|
endif()
|
|
|
|
if (${ARCH} STREQUAL "x86")
|
|
set(
|
|
MD5_ARCH_SOURCES
|
|
|
|
md5-586.${ASM_EXT}
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
md5
|
|
|
|
OBJECT
|
|
|
|
md5.c
|
|
|
|
${MD5_ARCH_SOURCES}
|
|
)
|
|
|
|
perlasm(md5-x86_64.${ASM_EXT} asm/md5-x86_64.pl)
|
|
perlasm(md5-586.${ASM_EXT} asm/md5-586.pl)
|