if(NOT MIDDLEWARE_LWIP_APPS_LWIPERF_MK64F12_INCLUDED)
    
    set(MIDDLEWARE_LWIP_APPS_LWIPERF_MK64F12_INCLUDED true CACHE BOOL "middleware_lwip_apps_lwiperf component is included.")

    target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
        ${CMAKE_CURRENT_LIST_DIR}/src/apps/lwiperf/lwiperf.c
    )


    target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE
        ${CMAKE_CURRENT_LIST_DIR}/src/include/lwip/apps
    )


    #OR Logic component
    if(CONFIG_USE_middleware_freertos-kernel_MK64F12)
         include(middleware_freertos-kernel_MK64F12)
    endif()
    if(CONFIG_USE_middleware_baremetal_MK64F12)
         include(middleware_baremetal_MK64F12)
    endif()
    if(NOT (CONFIG_USE_middleware_freertos-kernel_MK64F12 OR CONFIG_USE_middleware_baremetal_MK64F12))
        message(WARNING "Since middleware_freertos-kernel_MK64F12/middleware_baremetal_MK64F12 is not included at first or config in config.cmake file, use middleware_freertos-kernel_MK64F12 by default.")
        include(middleware_freertos-kernel_MK64F12)
    endif()

    include(middleware_lwip_MK64F12)

endif()
