# SPDX-License-Identifier: MIT

# This file was generated by
# scripts/copy_from_upstream/copy_from_upstream.py

set(_NTRUPRIME_OBJS "")

if(OQS_ENABLE_KEM_ntruprime_sntrup761)
    add_library(ntruprime_sntrup761_clean OBJECT kem_ntruprime_sntrup761.c pqclean_sntrup761_clean/crypto_core_inv3sntrup761.c pqclean_sntrup761_clean/crypto_core_invsntrup761.c pqclean_sntrup761_clean/crypto_core_mult3sntrup761.c pqclean_sntrup761_clean/crypto_core_multsntrup761.c pqclean_sntrup761_clean/crypto_core_scale3sntrup761.c pqclean_sntrup761_clean/crypto_core_weightsntrup761.c pqclean_sntrup761_clean/crypto_core_wforcesntrup761.c pqclean_sntrup761_clean/crypto_decode_761x1531.c pqclean_sntrup761_clean/crypto_decode_761x3.c pqclean_sntrup761_clean/crypto_decode_761x4591.c pqclean_sntrup761_clean/crypto_decode_761xint16.c pqclean_sntrup761_clean/crypto_decode_761xint32.c pqclean_sntrup761_clean/crypto_encode_761x1531.c pqclean_sntrup761_clean/crypto_encode_761x1531round.c pqclean_sntrup761_clean/crypto_encode_761x3.c pqclean_sntrup761_clean/crypto_encode_761x4591.c pqclean_sntrup761_clean/crypto_encode_761xfreeze3.c pqclean_sntrup761_clean/crypto_encode_761xint16.c pqclean_sntrup761_clean/crypto_encode_int16.c pqclean_sntrup761_clean/crypto_sort_int32.c pqclean_sntrup761_clean/crypto_sort_uint32.c pqclean_sntrup761_clean/crypto_verify_1039.c pqclean_sntrup761_clean/kem.c)
    target_include_directories(ntruprime_sntrup761_clean PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_sntrup761_clean)
    target_include_directories(ntruprime_sntrup761_clean PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_sntrup761_clean PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_sntrup761_clean>)
endif()

if(OQS_ENABLE_KEM_ntruprime_sntrup761_avx2)
    add_library(ntruprime_sntrup761_avx2 OBJECT pqclean_sntrup761_avx2/crypto_core_inv3sntrup761.c pqclean_sntrup761_avx2/crypto_core_invsntrup761.c pqclean_sntrup761_avx2/crypto_core_mult3sntrup761.c pqclean_sntrup761_avx2/crypto_core_multsntrup761.c pqclean_sntrup761_avx2/crypto_core_multsntrup761_ntt.c pqclean_sntrup761_avx2/crypto_core_scale3sntrup761.c pqclean_sntrup761_avx2/crypto_core_weightsntrup761.c pqclean_sntrup761_avx2/crypto_core_wforcesntrup761.c pqclean_sntrup761_avx2/crypto_decode_761x1531.c pqclean_sntrup761_avx2/crypto_decode_761x3.c pqclean_sntrup761_avx2/crypto_decode_761x4591.c pqclean_sntrup761_avx2/crypto_decode_761xint16.c pqclean_sntrup761_avx2/crypto_decode_761xint32.c pqclean_sntrup761_avx2/crypto_decode_int16.c pqclean_sntrup761_avx2/crypto_encode_761x1531.c pqclean_sntrup761_avx2/crypto_encode_761x1531round.c pqclean_sntrup761_avx2/crypto_encode_761x3.c pqclean_sntrup761_avx2/crypto_encode_761x4591.c pqclean_sntrup761_avx2/crypto_encode_761xfreeze3.c pqclean_sntrup761_avx2/crypto_encode_761xint16.c pqclean_sntrup761_avx2/crypto_encode_int16.c pqclean_sntrup761_avx2/crypto_sort_int32.c pqclean_sntrup761_avx2/crypto_sort_uint32.c pqclean_sntrup761_avx2/crypto_verify_1039.c pqclean_sntrup761_avx2/kem.c)
    target_include_directories(ntruprime_sntrup761_avx2 PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_sntrup761_avx2)
    target_include_directories(ntruprime_sntrup761_avx2 PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    target_compile_options(ntruprime_sntrup761_avx2 PRIVATE  -mavx2 )
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_sntrup761_avx2 PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_sntrup761_avx2>)
endif()

set(NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} PARENT_SCOPE)
