I'm working on building the QUTest blinky example for a real target (STM32H7 board) using CMake. However, I believe there might be an issue with the CMakeLists.txt file. When compiling with QUTest, you're not supposed to set any kernel (QV, QK, QXK). If you don't explicitly define QPC_CFG_KERNEL, the variable defaults to 'QV', which leads to the qv.c file being compiled, inevitably causing errors. Does anyone else see this issue?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Giulio,
The Cmake support in QP is currently designed for building "real" applications and not test fixtures for QUTest. For that you would need another layer of conditionals. I would recommend not to use Cmake for test fixtures at this time.
--MMS
Last edit: Quantum Leaps 2024-08-28
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I'm working on building the QUTest blinky example for a real target (STM32H7 board) using CMake. However, I believe there might be an issue with the CMakeLists.txt file. When compiling with QUTest, you're not supposed to set any kernel (QV, QK, QXK). If you don't explicitly define QPC_CFG_KERNEL, the variable defaults to 'QV', which leads to the qv.c file being compiled, inevitably causing errors. Does anyone else see this issue?
Hi Giulio,
The Cmake support in QP is currently designed for building "real" applications and not test fixtures for QUTest. For that you would need another layer of conditionals. I would recommend not to use Cmake for test fixtures at this time.
--MMS
Last edit: Quantum Leaps 2024-08-28