# 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_ntrulpr653)
    add_library(ntruprime_ntrulpr653_clean OBJECT kem_ntruprime_ntrulpr653.c pqclean_ntrulpr653_clean/crypto_core_multsntrup653.c pqclean_ntrulpr653_clean/crypto_decode_256x16.c pqclean_ntrulpr653_clean/crypto_decode_256x2.c pqclean_ntrulpr653_clean/crypto_decode_653x1541.c pqclean_ntrulpr653_clean/crypto_decode_653x3.c pqclean_ntrulpr653_clean/crypto_decode_653xint16.c pqclean_ntrulpr653_clean/crypto_decode_653xint32.c pqclean_ntrulpr653_clean/crypto_encode_256x16.c pqclean_ntrulpr653_clean/crypto_encode_256x2.c pqclean_ntrulpr653_clean/crypto_encode_653x1541.c pqclean_ntrulpr653_clean/crypto_encode_653x1541round.c pqclean_ntrulpr653_clean/crypto_encode_653x3.c pqclean_ntrulpr653_clean/crypto_encode_653xint16.c pqclean_ntrulpr653_clean/crypto_sort_int32.c pqclean_ntrulpr653_clean/crypto_sort_uint32.c pqclean_ntrulpr653_clean/crypto_stream_aes256ctr.c pqclean_ntrulpr653_clean/crypto_verify_1025.c pqclean_ntrulpr653_clean/kem.c)
    target_include_directories(ntruprime_ntrulpr653_clean PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_ntrulpr653_clean)
    target_include_directories(ntruprime_ntrulpr653_clean PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_ntrulpr653_clean PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_ntrulpr653_clean>)
endif()

if(OQS_ENABLE_KEM_ntruprime_ntrulpr653_avx2)
    add_library(ntruprime_ntrulpr653_avx2 OBJECT pqclean_ntrulpr653_avx2/crypto_core_multsntrup653.c pqclean_ntrulpr653_avx2/crypto_core_multsntrup653_ntt.c pqclean_ntrulpr653_avx2/crypto_decode_256x16.c pqclean_ntrulpr653_avx2/crypto_decode_256x2.c pqclean_ntrulpr653_avx2/crypto_decode_653x1541.c pqclean_ntrulpr653_avx2/crypto_decode_653x3.c pqclean_ntrulpr653_avx2/crypto_decode_653xint16.c pqclean_ntrulpr653_avx2/crypto_decode_653xint32.c pqclean_ntrulpr653_avx2/crypto_encode_256x16.c pqclean_ntrulpr653_avx2/crypto_encode_256x2.c pqclean_ntrulpr653_avx2/crypto_encode_653x1541.c pqclean_ntrulpr653_avx2/crypto_encode_653x1541round.c pqclean_ntrulpr653_avx2/crypto_encode_653x3.c pqclean_ntrulpr653_avx2/crypto_encode_653xint16.c pqclean_ntrulpr653_avx2/crypto_sort_int32.c pqclean_ntrulpr653_avx2/crypto_sort_uint32.c pqclean_ntrulpr653_avx2/crypto_stream_aes256ctr.c pqclean_ntrulpr653_avx2/crypto_verify_1025.c pqclean_ntrulpr653_avx2/kem.c)
    target_include_directories(ntruprime_ntrulpr653_avx2 PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_ntrulpr653_avx2)
    target_include_directories(ntruprime_ntrulpr653_avx2 PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    target_compile_options(ntruprime_ntrulpr653_avx2 PRIVATE  -mavx2 )
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_ntrulpr653_avx2 PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_ntrulpr653_avx2>)
endif()

if(OQS_ENABLE_KEM_ntruprime_ntrulpr761)
    add_library(ntruprime_ntrulpr761_clean OBJECT kem_ntruprime_ntrulpr761.c pqclean_ntrulpr761_clean/crypto_core_multsntrup761.c pqclean_ntrulpr761_clean/crypto_decode_256x16.c pqclean_ntrulpr761_clean/crypto_decode_256x2.c pqclean_ntrulpr761_clean/crypto_decode_761x1531.c pqclean_ntrulpr761_clean/crypto_decode_761x3.c pqclean_ntrulpr761_clean/crypto_decode_761xint16.c pqclean_ntrulpr761_clean/crypto_decode_761xint32.c pqclean_ntrulpr761_clean/crypto_encode_256x16.c pqclean_ntrulpr761_clean/crypto_encode_256x2.c pqclean_ntrulpr761_clean/crypto_encode_761x1531.c pqclean_ntrulpr761_clean/crypto_encode_761x1531round.c pqclean_ntrulpr761_clean/crypto_encode_761x3.c pqclean_ntrulpr761_clean/crypto_encode_761xint16.c pqclean_ntrulpr761_clean/crypto_sort_int32.c pqclean_ntrulpr761_clean/crypto_sort_uint32.c pqclean_ntrulpr761_clean/crypto_stream_aes256ctr.c pqclean_ntrulpr761_clean/crypto_verify_1167.c pqclean_ntrulpr761_clean/kem.c)
    target_include_directories(ntruprime_ntrulpr761_clean PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_ntrulpr761_clean)
    target_include_directories(ntruprime_ntrulpr761_clean PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_ntrulpr761_clean PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_ntrulpr761_clean>)
endif()

if(OQS_ENABLE_KEM_ntruprime_ntrulpr761_avx2)
    add_library(ntruprime_ntrulpr761_avx2 OBJECT pqclean_ntrulpr761_avx2/crypto_core_multsntrup761.c pqclean_ntrulpr761_avx2/crypto_core_multsntrup761_ntt.c pqclean_ntrulpr761_avx2/crypto_decode_256x16.c pqclean_ntrulpr761_avx2/crypto_decode_256x2.c pqclean_ntrulpr761_avx2/crypto_decode_761x1531.c pqclean_ntrulpr761_avx2/crypto_decode_761x3.c pqclean_ntrulpr761_avx2/crypto_decode_761xint16.c pqclean_ntrulpr761_avx2/crypto_decode_761xint32.c pqclean_ntrulpr761_avx2/crypto_encode_256x16.c pqclean_ntrulpr761_avx2/crypto_encode_256x2.c pqclean_ntrulpr761_avx2/crypto_encode_761x1531.c pqclean_ntrulpr761_avx2/crypto_encode_761x1531round.c pqclean_ntrulpr761_avx2/crypto_encode_761x3.c pqclean_ntrulpr761_avx2/crypto_encode_761xint16.c pqclean_ntrulpr761_avx2/crypto_sort_int32.c pqclean_ntrulpr761_avx2/crypto_sort_uint32.c pqclean_ntrulpr761_avx2/crypto_stream_aes256ctr.c pqclean_ntrulpr761_avx2/crypto_verify_1167.c pqclean_ntrulpr761_avx2/kem.c)
    target_include_directories(ntruprime_ntrulpr761_avx2 PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_ntrulpr761_avx2)
    target_include_directories(ntruprime_ntrulpr761_avx2 PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    target_compile_options(ntruprime_ntrulpr761_avx2 PRIVATE  -mavx2 )
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_ntrulpr761_avx2 PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_ntrulpr761_avx2>)
endif()

if(OQS_ENABLE_KEM_ntruprime_ntrulpr857)
    add_library(ntruprime_ntrulpr857_clean OBJECT kem_ntruprime_ntrulpr857.c pqclean_ntrulpr857_clean/crypto_core_multsntrup857.c pqclean_ntrulpr857_clean/crypto_decode_256x16.c pqclean_ntrulpr857_clean/crypto_decode_256x2.c pqclean_ntrulpr857_clean/crypto_decode_857x1723.c pqclean_ntrulpr857_clean/crypto_decode_857x3.c pqclean_ntrulpr857_clean/crypto_decode_857xint16.c pqclean_ntrulpr857_clean/crypto_decode_857xint32.c pqclean_ntrulpr857_clean/crypto_encode_256x16.c pqclean_ntrulpr857_clean/crypto_encode_256x2.c pqclean_ntrulpr857_clean/crypto_encode_857x1723.c pqclean_ntrulpr857_clean/crypto_encode_857x1723round.c pqclean_ntrulpr857_clean/crypto_encode_857x3.c pqclean_ntrulpr857_clean/crypto_encode_857xint16.c pqclean_ntrulpr857_clean/crypto_sort_int32.c pqclean_ntrulpr857_clean/crypto_sort_uint32.c pqclean_ntrulpr857_clean/crypto_stream_aes256ctr.c pqclean_ntrulpr857_clean/crypto_verify_1312.c pqclean_ntrulpr857_clean/kem.c)
    target_include_directories(ntruprime_ntrulpr857_clean PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_ntrulpr857_clean)
    target_include_directories(ntruprime_ntrulpr857_clean PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_ntrulpr857_clean PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_ntrulpr857_clean>)
endif()

if(OQS_ENABLE_KEM_ntruprime_ntrulpr857_avx2)
    add_library(ntruprime_ntrulpr857_avx2 OBJECT pqclean_ntrulpr857_avx2/crypto_core_multsntrup857.c pqclean_ntrulpr857_avx2/crypto_core_multsntrup857_ntt.c pqclean_ntrulpr857_avx2/crypto_decode_256x16.c pqclean_ntrulpr857_avx2/crypto_decode_256x2.c pqclean_ntrulpr857_avx2/crypto_decode_857x1723.c pqclean_ntrulpr857_avx2/crypto_decode_857x3.c pqclean_ntrulpr857_avx2/crypto_decode_857xint16.c pqclean_ntrulpr857_avx2/crypto_decode_857xint32.c pqclean_ntrulpr857_avx2/crypto_encode_256x16.c pqclean_ntrulpr857_avx2/crypto_encode_256x2.c pqclean_ntrulpr857_avx2/crypto_encode_857x1723.c pqclean_ntrulpr857_avx2/crypto_encode_857x1723round.c pqclean_ntrulpr857_avx2/crypto_encode_857x3.c pqclean_ntrulpr857_avx2/crypto_encode_857xint16.c pqclean_ntrulpr857_avx2/crypto_sort_int32.c pqclean_ntrulpr857_avx2/crypto_sort_uint32.c pqclean_ntrulpr857_avx2/crypto_stream_aes256ctr.c pqclean_ntrulpr857_avx2/crypto_verify_1312.c pqclean_ntrulpr857_avx2/kem.c)
    target_include_directories(ntruprime_ntrulpr857_avx2 PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_ntrulpr857_avx2)
    target_include_directories(ntruprime_ntrulpr857_avx2 PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    target_compile_options(ntruprime_ntrulpr857_avx2 PRIVATE  -mavx2 )
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_ntrulpr857_avx2 PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_ntrulpr857_avx2>)
endif()

if(OQS_ENABLE_KEM_ntruprime_ntrulpr1277)
    add_library(ntruprime_ntrulpr1277_clean OBJECT kem_ntruprime_ntrulpr1277.c pqclean_ntrulpr1277_clean/crypto_core_multsntrup1277.c pqclean_ntrulpr1277_clean/crypto_decode_1277x2627.c pqclean_ntrulpr1277_clean/crypto_decode_1277x3.c pqclean_ntrulpr1277_clean/crypto_decode_1277xint16.c pqclean_ntrulpr1277_clean/crypto_decode_1277xint32.c pqclean_ntrulpr1277_clean/crypto_decode_256x16.c pqclean_ntrulpr1277_clean/crypto_decode_256x2.c pqclean_ntrulpr1277_clean/crypto_encode_1277x2627.c pqclean_ntrulpr1277_clean/crypto_encode_1277x2627round.c pqclean_ntrulpr1277_clean/crypto_encode_1277x3.c pqclean_ntrulpr1277_clean/crypto_encode_1277xint16.c pqclean_ntrulpr1277_clean/crypto_encode_256x16.c pqclean_ntrulpr1277_clean/crypto_encode_256x2.c pqclean_ntrulpr1277_clean/crypto_sort_int32.c pqclean_ntrulpr1277_clean/crypto_sort_uint32.c pqclean_ntrulpr1277_clean/crypto_stream_aes256ctr.c pqclean_ntrulpr1277_clean/crypto_verify_1975.c pqclean_ntrulpr1277_clean/kem.c)
    target_include_directories(ntruprime_ntrulpr1277_clean PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_ntrulpr1277_clean)
    target_include_directories(ntruprime_ntrulpr1277_clean PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_ntrulpr1277_clean PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_ntrulpr1277_clean>)
endif()

if(OQS_ENABLE_KEM_ntruprime_ntrulpr1277_avx2)
    add_library(ntruprime_ntrulpr1277_avx2 OBJECT pqclean_ntrulpr1277_avx2/crypto_core_multsntrup1277.c pqclean_ntrulpr1277_avx2/crypto_core_multsntrup1277_ntt.c pqclean_ntrulpr1277_avx2/crypto_decode_1277x2627.c pqclean_ntrulpr1277_avx2/crypto_decode_1277x3.c pqclean_ntrulpr1277_avx2/crypto_decode_1277xint16.c pqclean_ntrulpr1277_avx2/crypto_decode_1277xint32.c pqclean_ntrulpr1277_avx2/crypto_decode_256x16.c pqclean_ntrulpr1277_avx2/crypto_decode_256x2.c pqclean_ntrulpr1277_avx2/crypto_encode_1277x2627.c pqclean_ntrulpr1277_avx2/crypto_encode_1277x2627round.c pqclean_ntrulpr1277_avx2/crypto_encode_1277x3.c pqclean_ntrulpr1277_avx2/crypto_encode_1277xint16.c pqclean_ntrulpr1277_avx2/crypto_encode_256x16.c pqclean_ntrulpr1277_avx2/crypto_encode_256x2.c pqclean_ntrulpr1277_avx2/crypto_sort_int32.c pqclean_ntrulpr1277_avx2/crypto_sort_uint32.c pqclean_ntrulpr1277_avx2/crypto_stream_aes256ctr.c pqclean_ntrulpr1277_avx2/crypto_verify_1975.c pqclean_ntrulpr1277_avx2/kem.c)
    target_include_directories(ntruprime_ntrulpr1277_avx2 PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_ntrulpr1277_avx2)
    target_include_directories(ntruprime_ntrulpr1277_avx2 PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    target_compile_options(ntruprime_ntrulpr1277_avx2 PRIVATE  -mavx2 )
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_ntrulpr1277_avx2 PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_ntrulpr1277_avx2>)
endif()

if(OQS_ENABLE_KEM_ntruprime_sntrup653)
    add_library(ntruprime_sntrup653_clean OBJECT kem_ntruprime_sntrup653.c pqclean_sntrup653_clean/crypto_core_inv3sntrup653.c pqclean_sntrup653_clean/crypto_core_invsntrup653.c pqclean_sntrup653_clean/crypto_core_mult3sntrup653.c pqclean_sntrup653_clean/crypto_core_multsntrup653.c pqclean_sntrup653_clean/crypto_core_scale3sntrup653.c pqclean_sntrup653_clean/crypto_core_weightsntrup653.c pqclean_sntrup653_clean/crypto_core_wforcesntrup653.c pqclean_sntrup653_clean/crypto_decode_653x1541.c pqclean_sntrup653_clean/crypto_decode_653x3.c pqclean_sntrup653_clean/crypto_decode_653x4621.c pqclean_sntrup653_clean/crypto_decode_653xint16.c pqclean_sntrup653_clean/crypto_decode_653xint32.c pqclean_sntrup653_clean/crypto_encode_653x1541.c pqclean_sntrup653_clean/crypto_encode_653x1541round.c pqclean_sntrup653_clean/crypto_encode_653x3.c pqclean_sntrup653_clean/crypto_encode_653x4621.c pqclean_sntrup653_clean/crypto_encode_653xfreeze3.c pqclean_sntrup653_clean/crypto_encode_653xint16.c pqclean_sntrup653_clean/crypto_encode_int16.c pqclean_sntrup653_clean/crypto_sort_int32.c pqclean_sntrup653_clean/crypto_sort_uint32.c pqclean_sntrup653_clean/crypto_verify_897.c pqclean_sntrup653_clean/kem.c)
    target_include_directories(ntruprime_sntrup653_clean PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_sntrup653_clean)
    target_include_directories(ntruprime_sntrup653_clean PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_sntrup653_clean PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_sntrup653_clean>)
endif()

if(OQS_ENABLE_KEM_ntruprime_sntrup653_avx2)
    add_library(ntruprime_sntrup653_avx2 OBJECT pqclean_sntrup653_avx2/crypto_core_inv3sntrup653.c pqclean_sntrup653_avx2/crypto_core_invsntrup653.c pqclean_sntrup653_avx2/crypto_core_mult3sntrup653.c pqclean_sntrup653_avx2/crypto_core_multsntrup653.c pqclean_sntrup653_avx2/crypto_core_multsntrup653_ntt.c pqclean_sntrup653_avx2/crypto_core_scale3sntrup653.c pqclean_sntrup653_avx2/crypto_core_weightsntrup653.c pqclean_sntrup653_avx2/crypto_core_wforcesntrup653.c pqclean_sntrup653_avx2/crypto_decode_653x1541.c pqclean_sntrup653_avx2/crypto_decode_653x3.c pqclean_sntrup653_avx2/crypto_decode_653x4621.c pqclean_sntrup653_avx2/crypto_decode_653xint16.c pqclean_sntrup653_avx2/crypto_decode_653xint32.c pqclean_sntrup653_avx2/crypto_decode_int16.c pqclean_sntrup653_avx2/crypto_encode_653x1541.c pqclean_sntrup653_avx2/crypto_encode_653x1541round.c pqclean_sntrup653_avx2/crypto_encode_653x3.c pqclean_sntrup653_avx2/crypto_encode_653x4621.c pqclean_sntrup653_avx2/crypto_encode_653xfreeze3.c pqclean_sntrup653_avx2/crypto_encode_653xint16.c pqclean_sntrup653_avx2/crypto_encode_int16.c pqclean_sntrup653_avx2/crypto_sort_int32.c pqclean_sntrup653_avx2/crypto_sort_uint32.c pqclean_sntrup653_avx2/crypto_verify_897.c pqclean_sntrup653_avx2/kem.c)
    target_include_directories(ntruprime_sntrup653_avx2 PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_sntrup653_avx2)
    target_include_directories(ntruprime_sntrup653_avx2 PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    target_compile_options(ntruprime_sntrup653_avx2 PRIVATE  -mavx2 )
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_sntrup653_avx2 PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_sntrup653_avx2>)
endif()

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()

if(OQS_ENABLE_KEM_ntruprime_sntrup857)
    add_library(ntruprime_sntrup857_clean OBJECT kem_ntruprime_sntrup857.c pqclean_sntrup857_clean/crypto_core_inv3sntrup857.c pqclean_sntrup857_clean/crypto_core_invsntrup857.c pqclean_sntrup857_clean/crypto_core_mult3sntrup857.c pqclean_sntrup857_clean/crypto_core_multsntrup857.c pqclean_sntrup857_clean/crypto_core_scale3sntrup857.c pqclean_sntrup857_clean/crypto_core_weightsntrup857.c pqclean_sntrup857_clean/crypto_core_wforcesntrup857.c pqclean_sntrup857_clean/crypto_decode_857x1723.c pqclean_sntrup857_clean/crypto_decode_857x3.c pqclean_sntrup857_clean/crypto_decode_857x5167.c pqclean_sntrup857_clean/crypto_decode_857xint16.c pqclean_sntrup857_clean/crypto_decode_857xint32.c pqclean_sntrup857_clean/crypto_encode_857x1723.c pqclean_sntrup857_clean/crypto_encode_857x1723round.c pqclean_sntrup857_clean/crypto_encode_857x3.c pqclean_sntrup857_clean/crypto_encode_857x5167.c pqclean_sntrup857_clean/crypto_encode_857xfreeze3.c pqclean_sntrup857_clean/crypto_encode_857xint16.c pqclean_sntrup857_clean/crypto_encode_int16.c pqclean_sntrup857_clean/crypto_sort_int32.c pqclean_sntrup857_clean/crypto_sort_uint32.c pqclean_sntrup857_clean/crypto_verify_1184.c pqclean_sntrup857_clean/kem.c)
    target_include_directories(ntruprime_sntrup857_clean PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_sntrup857_clean)
    target_include_directories(ntruprime_sntrup857_clean PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_sntrup857_clean PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_sntrup857_clean>)
endif()

if(OQS_ENABLE_KEM_ntruprime_sntrup857_avx2)
    add_library(ntruprime_sntrup857_avx2 OBJECT pqclean_sntrup857_avx2/crypto_core_inv3sntrup857.c pqclean_sntrup857_avx2/crypto_core_invsntrup857.c pqclean_sntrup857_avx2/crypto_core_mult3sntrup857.c pqclean_sntrup857_avx2/crypto_core_multsntrup857.c pqclean_sntrup857_avx2/crypto_core_multsntrup857_ntt.c pqclean_sntrup857_avx2/crypto_core_scale3sntrup857.c pqclean_sntrup857_avx2/crypto_core_weightsntrup857.c pqclean_sntrup857_avx2/crypto_core_wforcesntrup857.c pqclean_sntrup857_avx2/crypto_decode_857x1723.c pqclean_sntrup857_avx2/crypto_decode_857x3.c pqclean_sntrup857_avx2/crypto_decode_857x5167.c pqclean_sntrup857_avx2/crypto_decode_857xint16.c pqclean_sntrup857_avx2/crypto_decode_857xint32.c pqclean_sntrup857_avx2/crypto_decode_int16.c pqclean_sntrup857_avx2/crypto_encode_857x1723.c pqclean_sntrup857_avx2/crypto_encode_857x1723round.c pqclean_sntrup857_avx2/crypto_encode_857x3.c pqclean_sntrup857_avx2/crypto_encode_857x5167.c pqclean_sntrup857_avx2/crypto_encode_857xfreeze3.c pqclean_sntrup857_avx2/crypto_encode_857xint16.c pqclean_sntrup857_avx2/crypto_encode_int16.c pqclean_sntrup857_avx2/crypto_sort_int32.c pqclean_sntrup857_avx2/crypto_sort_uint32.c pqclean_sntrup857_avx2/crypto_verify_1184.c pqclean_sntrup857_avx2/kem.c)
    target_include_directories(ntruprime_sntrup857_avx2 PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_sntrup857_avx2)
    target_include_directories(ntruprime_sntrup857_avx2 PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    target_compile_options(ntruprime_sntrup857_avx2 PRIVATE  -mavx2 )
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_sntrup857_avx2 PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_sntrup857_avx2>)
endif()

if(OQS_ENABLE_KEM_ntruprime_sntrup1277)
    add_library(ntruprime_sntrup1277_clean OBJECT kem_ntruprime_sntrup1277.c pqclean_sntrup1277_clean/crypto_core_inv3sntrup1277.c pqclean_sntrup1277_clean/crypto_core_invsntrup1277.c pqclean_sntrup1277_clean/crypto_core_mult3sntrup1277.c pqclean_sntrup1277_clean/crypto_core_multsntrup1277.c pqclean_sntrup1277_clean/crypto_core_scale3sntrup1277.c pqclean_sntrup1277_clean/crypto_core_weightsntrup1277.c pqclean_sntrup1277_clean/crypto_core_wforcesntrup1277.c pqclean_sntrup1277_clean/crypto_decode_1277x2627.c pqclean_sntrup1277_clean/crypto_decode_1277x3.c pqclean_sntrup1277_clean/crypto_decode_1277x7879.c pqclean_sntrup1277_clean/crypto_decode_1277xint16.c pqclean_sntrup1277_clean/crypto_decode_1277xint32.c pqclean_sntrup1277_clean/crypto_encode_1277x2627.c pqclean_sntrup1277_clean/crypto_encode_1277x2627round.c pqclean_sntrup1277_clean/crypto_encode_1277x3.c pqclean_sntrup1277_clean/crypto_encode_1277x7879.c pqclean_sntrup1277_clean/crypto_encode_1277xfreeze3.c pqclean_sntrup1277_clean/crypto_encode_1277xint16.c pqclean_sntrup1277_clean/crypto_encode_int16.c pqclean_sntrup1277_clean/crypto_sort_int32.c pqclean_sntrup1277_clean/crypto_sort_uint32.c pqclean_sntrup1277_clean/crypto_verify_1847.c pqclean_sntrup1277_clean/kem.c)
    target_include_directories(ntruprime_sntrup1277_clean PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_sntrup1277_clean)
    target_include_directories(ntruprime_sntrup1277_clean PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_sntrup1277_clean PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_sntrup1277_clean>)
endif()

if(OQS_ENABLE_KEM_ntruprime_sntrup1277_avx2)
    add_library(ntruprime_sntrup1277_avx2 OBJECT pqclean_sntrup1277_avx2/crypto_core_inv3sntrup1277.c pqclean_sntrup1277_avx2/crypto_core_invsntrup1277.c pqclean_sntrup1277_avx2/crypto_core_mult3sntrup1277.c pqclean_sntrup1277_avx2/crypto_core_multsntrup1277.c pqclean_sntrup1277_avx2/crypto_core_multsntrup1277_ntt.c pqclean_sntrup1277_avx2/crypto_core_scale3sntrup1277.c pqclean_sntrup1277_avx2/crypto_core_weightsntrup1277.c pqclean_sntrup1277_avx2/crypto_core_wforcesntrup1277.c pqclean_sntrup1277_avx2/crypto_decode_1277x2627.c pqclean_sntrup1277_avx2/crypto_decode_1277x3.c pqclean_sntrup1277_avx2/crypto_decode_1277x7879.c pqclean_sntrup1277_avx2/crypto_decode_1277xint16.c pqclean_sntrup1277_avx2/crypto_decode_1277xint32.c pqclean_sntrup1277_avx2/crypto_decode_int16.c pqclean_sntrup1277_avx2/crypto_encode_1277x2627.c pqclean_sntrup1277_avx2/crypto_encode_1277x2627round.c pqclean_sntrup1277_avx2/crypto_encode_1277x3.c pqclean_sntrup1277_avx2/crypto_encode_1277x7879.c pqclean_sntrup1277_avx2/crypto_encode_1277xfreeze3.c pqclean_sntrup1277_avx2/crypto_encode_1277xint16.c pqclean_sntrup1277_avx2/crypto_encode_int16.c pqclean_sntrup1277_avx2/crypto_sort_int32.c pqclean_sntrup1277_avx2/crypto_sort_uint32.c pqclean_sntrup1277_avx2/crypto_verify_1847.c pqclean_sntrup1277_avx2/kem.c)
    target_include_directories(ntruprime_sntrup1277_avx2 PRIVATE ${CMAKE_CURRENT_LIST_DIR}/pqclean_sntrup1277_avx2)
    target_include_directories(ntruprime_sntrup1277_avx2 PRIVATE ${PROJECT_SOURCE_DIR}/src/common/pqclean_shims)
    target_compile_options(ntruprime_sntrup1277_avx2 PRIVATE  -mavx2 )
    if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
        target_compile_definitions(ntruprime_sntrup1277_avx2 PRIVATE old_gas_syntax)
    endif()
    set(_NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} $<TARGET_OBJECTS:ntruprime_sntrup1277_avx2>)
endif()

set(NTRUPRIME_OBJS ${_NTRUPRIME_OBJS} PARENT_SCOPE)
