From 8e788e66c259bfde3c133ba7d3a16cb1f9518734 Mon Sep 17 00:00:00 2001 From: Soren Ptak Date: Fri, 13 Oct 2023 12:30:16 -0700 Subject: [PATCH] Add in the deleted cmake list --- minimal_freertos_example/CMakeLists.txt | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 minimal_freertos_example/CMakeLists.txt diff --git a/minimal_freertos_example/CMakeLists.txt b/minimal_freertos_example/CMakeLists.txt new file mode 100644 index 00000000000..533343b13be --- /dev/null +++ b/minimal_freertos_example/CMakeLists.txt @@ -0,0 +1,39 @@ +cmake_minimum_required(VERSION 3.15) + +set(PROJECT_NAME example) + +project(${PROJECT_NAME}) + +set(FREERTOS_KERNEL_PATH "../") + +# Add the freertos_config for FreeRTOS-Kernel +add_library(freertos_config INTERFACE) + +target_include_directories(freertos_config + INTERFACE + ./ + ../sample_configuration +) + +# Select the heap port. values between 1-4 will pick a heap. +# set(FREERTOS_HEAP "40" CACHE STRING "" FORCE) + +# Select the native compile PORT +set(FREERTOS_PORT "TEMPLATE" CACHE STRING "" FORCE) + +# bring in the kernel +#add_subdirectory(${FREERTOS_KERNEL_PATH}) + +# Adding the FreeRTOS-Kernel subdirectory +add_subdirectory(${FREERTOS_KERNEL_PATH} ${CMAKE_CURRENT_BINARY_DIR}/FreeRTOS-Kernel) + +add_executable(${PROJECT_NAME} + main.c +) + +target_include_directories(${PROJECT_NAME} + PRIVATE + ${CMAKE_CURRENT_LIST_DIR} +) + +target_link_libraries(${PROJECT_NAME} freertos_kernel freertos_config) \ No newline at end of file