blob: 8e639c22278d0eeee178136d2b07dab0eb3ff519 [file] [log] [blame]
include_directories(../../include)
if (${ARCH} STREQUAL "x86_64")
set(
RAND_ARCH_SOURCES
rdrand-x86_64.${ASM_EXT}
)
endif()
add_library(
rand
OBJECT
rand.c
urandom.c
windows.c
hwrand.c
${RAND_ARCH_SOURCES}
)
perlasm(rdrand-x86_64.${ASM_EXT} asm/rdrand-x86_64.pl)
add_executable(
urandom_test
urandom_test.cc
$<TARGET_OBJECTS:test_support>
)
target_link_libraries(urandom_test crypto)