mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-01-28 06:02:56 +08:00
10441f7a03
updated QV, QK for MSP430 Cmake support
16 lines
517 B
CMake
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()
|