# nanowasm, a tiny WebAssembly/Wasm interpreter
# Copyright (C) 2023-2025  Xavier Del Campo Romero
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

target_sources(${PROJECT_NAME} PRIVATE
    code.c
    custom.c
    data.c
    data_count.c
    element.c
    exit.c
    export.c
    fbo.c
    fti.c
    function.c
    global.c
    import.c
    iti.c
    lo.c
    memory.c
    ops.c
    skip.c
    start.c
    table.c
    to.c
    type.c
)

if(NW_CHECK_CODE)
    target_compile_definitions(${PROJECT_NAME} PRIVATE NW_CHECK_CODE)
endif()
