zephyr/subsys/portability/cmsis_rtos_v1/CMakeLists.txt

29 lines
550 B
CMake

# SPDX-License-Identifier: Apache-2.0
add_library(CMSIS INTERFACE)
target_include_directories(CMSIS INTERFACE ${PROJECT_SOURCE_DIR}/include/zephyr/portability)
zephyr_library()
zephyr_library_sources_ifdef(
CONFIG_CMSIS_RTOS_V1
cmsis_thread.c
cmsis_wait.c
cmsis_kernel.c
cmsis_timer.c
cmsis_mutex.c
cmsis_semaphore.c
cmsis_mempool.c
cmsis_mailq.c
cmsis_msgq.c
cmsis_signal.c
)
zephyr_library_include_directories(
${ZEPHYR_BASE}/kernel/include
${ZEPHYR_BASE}/arch/${ARCH}/include
)
zephyr_library_link_libraries(CMSIS)