This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Segger Embedded Studio NCS project - invoke CMake targets

Hello! I've been using Segger Embedded Studio (Nordic Edition) for the project in nRF Connect SDK.

So, this SDK uses CMake to build the projects. But my project involves adding other CMake targets, particularly unit tests with add_test() CMake function.

However, Segger only displays the options to select active project and to build an executable, not to invoke a particular CMake target.

Perhaps anyone familiar with SES could advise something?n

Parents Reply Children
  • Hi Simon,

    That's right, however I have two complications with this in Segger Embedded Studio:

    • First, if I use EXCLUDE_FROM_ALL on the test target to build it only on demand, then it doesn't appear in the "Project Explorer" and can't be selected with "Project -> Set Active Project". And I can't build the test through the Segger IDE. 
    • Actually, it seems that only building the "hex" of any CMake project is allowed. If the intentions are
      • to build the test target with a different compiler (to run natively instead of on the embedded device)
      • to create a target to run the previously built test

                then I don't see an option to do this

Related