qpcpp/ports/pic32/CMakeLists.txt
MMS 10441f7a03 7.3.4
updated QV, QK for MSP430
Cmake support
2024-03-21 14:44:27 -04:00

16 lines
517 B
CMake

# ports/pic32
if(QPCPP_CFG_UNIT_TEST)
target_include_directories(qpcpp PUBLIC qutest/xc32)
else()
if(NOT KERNEL MATCHES "q[vk]")
message(WARNING "Kernel ${KERNEL} is not supported! Falling back to QV kernel")
set(KERNEL qv)
endif()
set(KERNEL_PORT_CPP ${CMAKE_CURRENT_LIST_DIR}/${KERNEL}/xc32/${KERNEL}_port.cpp)
if(EXISTS ${KERNEL_PORT_CPP})
target_sources(qpcpp PRIVATE ${KERNEL_PORT_CPP})
endif()
target_include_directories(qpcpp PUBLIC ${KERNEL}/xc32)
endif()