1cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)
2cmake_policy(SET CMP0057 NEW)
3
4project(samples LANGUAGES C)
5
6set(SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../../ports/linux/gnu/example_build)
7
8set(sample_files
9    ${SOURCE_DIR}/sample_threadx.c)
10
11foreach(sample_file ${sample_files})
12  get_filename_component(sample_file_name ${sample_file} NAME_WE)
13  add_executable(${sample_file_name} ${sample_file} ${CMAKE_CURRENT_LIST_DIR}/fake.c)
14  target_link_libraries(${sample_file_name} PRIVATE azrtos::threadx)
15endforeach()
16