# Copyright (c) 2026 Eclipse ThreadX contributors # SPDX-License-Identifier: MIT # Portions of this file were generated with AI assistance. # # ThreadX port sources for linux, GNU tools. target_sources(${PROJECT_NAME} PRIVATE # {{BEGIN_TARGET_SOURCES}} ${CMAKE_CURRENT_LIST_DIR}/src/tx_initialize_low_level.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_context_restore.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_context_save.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_interrupt_control.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_schedule.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_smp_core_get.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_smp_core_preempt.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_smp_current_state_get.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_smp_current_thread_get.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_smp_initialize_wait.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_smp_low_level_initialize.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_smp_protect.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_smp_time_get.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_smp_unprotect.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_stack_build.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_system_return.c ${CMAKE_CURRENT_LIST_DIR}/src/tx_timer_interrupt.c # {{END_TARGET_SOURCES}} ) target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) # The demo program beside the port. Off by default so the ordinary build # produces just the library; -DTHREADX_SAMPLE=ON adds the sample_threadx target. option(THREADX_SAMPLE "Build the sample program for this port" OFF) if(THREADX_SAMPLE) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/example_build) endif()