diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f931f6d4..05baf6c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,8 +31,17 @@ endif() # Pick up the common stuff add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/common) - - +# Define the FreeRTOS adaptation layer +add_library(freertos-threadx EXCLUDE_FROM_ALL) +target_include_directories(freertos-threadx + PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/utility/rtos_compatibility_layers/FreeRTOS +) +target_sources(freertos-threadx + PRIVATE + ${CMAKE_CURRENT_LIST_DIR}/utility/rtos_compatibility_layers/FreeRTOS/tx_freertos.c +) +target_link_libraries(freertos-threadx PUBLIC threadx) # If the user provided an override, copy it to the custom directory if (NOT TX_USER_FILE) |
