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