mirror of
https://github.com/eclipse-threadx/filex.git
synced 2026-09-14 04:05:59 +08:00
Anything under 3.5 was breaking build scripts (for FileX and for other components that use FileX as a dependency e.g. NetXDuo)
18 lines
611 B
CMake
18 lines
611 B
CMake
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
|
|
cmake_policy(SET CMP0057 NEW)
|
|
|
|
project(samples LANGUAGES C)
|
|
|
|
set(SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../samples)
|
|
|
|
set(sample_files
|
|
${SOURCE_DIR}/demo_filex.c)
|
|
|
|
foreach(sample_file ${sample_files})
|
|
get_filename_component(sample_file_name ${sample_file} NAME_WE)
|
|
add_executable(${sample_file_name} ${sample_file}
|
|
${CMAKE_CURRENT_LIST_DIR}/../../regression_test/fx_ram_driver_test.c)
|
|
target_compile_options(${sample_file_name} PRIVATE -DSAMPLE_BUILD)
|
|
target_link_libraries(${sample_file_name} PRIVATE azrtos::filex)
|
|
endforeach()
|