# Reference package: the avx2 sources of this library are not shipped, so the plain
# 64-bit C permutation is the only backend.
set(SHA3_SRCS
        KeccakHash.c
        KeccakHash.h
        KeccakSponge.c
        KeccakSponge.h
        KeccakSpongetimes4.c
        KeccakSpongetimes4.h
        KeccakHashtimes4.c
        KeccakHashtimes4.h
        align.h
        brg_endian.h
        config.h
        endian_compat.h
        macros.h
        s390_cpacf.h
        SnP-Relaned.h
)
set(SHA3_OPT64_SRCS
        opt64/KeccakP-1600-opt64.c
        opt64/KeccakP-1600-opt64-config.h
        opt64/KeccakP-1600-SnP.h
        opt64/KeccakP-1600-times4-on1.c
        opt64/KeccakP-1600-times4-SnP.h
)
add_library(sha3 STATIC ${SHA3_SRCS} ${SHA3_OPT64_SRCS})
target_include_directories(sha3 PUBLIC opt64)
target_include_directories(sha3 PUBLIC .)
