1 include_directories(../../include) 2 3 if (${ARCH} STREQUAL "x86_64") 4 set( 5 RAND_ARCH_SOURCES 6 7 rdrand-x86_64.${ASM_EXT} 8 ) 9 endif() 10 11 add_library( 12 rand 13 14 OBJECT 15 16 rand.c 17 urandom.c 18 windows.c 19 20 ${RAND_ARCH_SOURCES} 21 ) 22 23 perlasm(rdrand-x86_64.${ASM_EXT} asm/rdrand-x86_64.pl) 24