Skip to content

Commit

Permalink
Cleanup the CMakelists
Browse files Browse the repository at this point in the history
  • Loading branch information
n9wxu committed Oct 13, 2023
1 parent 95c6a6b commit fca8410
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions minimal_freertos_example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
cmake_minimum_required(VERSION 3.15)

set(PROJECT_NAME example)

project(${PROJECT_NAME})
project(example)

set(FREERTOS_KERNEL_PATH "../")

Expand All @@ -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)

0 comments on commit fca8410

Please sign in to comment.