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