1include_directories(../../include) 2 3if (${ARCH} STREQUAL "x86_64") 4 set( 5 MD5_ARCH_SOURCES 6 7 md5-x86_64.${ASM_EXT} 8 ) 9endif() 10 11if (${ARCH} STREQUAL "x86") 12 set( 13 MD5_ARCH_SOURCES 14 15 md5-586.${ASM_EXT} 16 ) 17endif() 18 19add_library( 20 md5 21 22 OBJECT 23 24 md5.c 25 26 ${MD5_ARCH_SOURCES} 27) 28 29perlasm(md5-x86_64.${ASM_EXT} asm/md5-x86_64.pl) 30perlasm(md5-586.${ASM_EXT} asm/md5-586.pl) 31