Menu

Cmake and QUTest

2024-08-28
2024-08-28
  • Giulio Dalla Vecchia

    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?

     
  • Quantum Leaps

    Quantum Leaps - 2024-08-28

    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

Log in to post a comment.