From fca84106e9d2f7029a8a586c2c9443d26a0be1bf Mon Sep 17 00:00:00 2001 From: Joseph Julicher Date: Fri, 13 Oct 2023 14:46:08 -0700 Subject: [PATCH] Cleanup the CMakelists --- minimal_freertos_example/CMakeLists.txt | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/minimal_freertos_example/CMakeLists.txt b/minimal_freertos_example/CMakeLists.txt index 65b08eefaae..7230120390f 100644 --- a/minimal_freertos_example/CMakeLists.txt +++ b/minimal_freertos_example/CMakeLists.txt @@ -1,8 +1,6 @@ cmake_minimum_required(VERSION 3.15) -set(PROJECT_NAME example) - -project(${PROJECT_NAME}) +project(example) set(FREERTOS_KERNEL_PATH "../") @@ -11,29 +9,20 @@ 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) +# set(FREERTOS_HEAP "4" 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_subdirectory(${FREERTOS_KERNEL_PATH} 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)