<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Segger Embedded Studio NCS project - invoke CMake targets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84323/segger-embedded-studio-ncs-project---invoke-cmake-targets</link><description>Hello! I&amp;#39;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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Feb 2022 14:53:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84323/segger-embedded-studio-ncs-project---invoke-cmake-targets" /><item><title>RE: Segger Embedded Studio NCS project - invoke CMake targets</title><link>https://devzone.nordicsemi.com/thread/351371?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 14:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be05532e-fc08-4f25-8cd4-13bf5962f05e</guid><dc:creator>CodeLoader</dc:creator><description>&lt;p&gt;Thanks, I will definitely look at the Zephyr framework&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger Embedded Studio NCS project - invoke CMake targets</title><link>https://devzone.nordicsemi.com/thread/351323?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 12:26:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe3b1370-97d9-44a8-8633-874ec1e9592c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Right. Have you checked out the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/test/index.html"&gt;Zephyr test framework in the nRFConnect SDK documentation&lt;/a&gt;, which should be better suited to build multiple boards simultaneously. In all fairness, SES doesn&amp;#39;t seem to be the correct choice for this kind of thing. You might be able to get it to work with the command line tools, but SES and CMake don&amp;#39;t really go great together.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger Embedded Studio NCS project - invoke CMake targets</title><link>https://devzone.nordicsemi.com/thread/351123?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 13:40:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5817b251-cd57-4467-a926-9da55de92e59</guid><dc:creator>CodeLoader</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;That&amp;#39;s right, however I have two complications with this in Segger Embedded Studio:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;First, if I use EXCLUDE_FROM_ALL on the test target to build it only on demand, then it doesn&amp;#39;t appear in the &amp;quot;Project Explorer&amp;quot; and can&amp;#39;t be selected with &amp;quot;Project -&amp;gt; Set Active Project&amp;quot;. And I can&amp;#39;t build the test through the Segger IDE.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Actually, it seems that only building the &amp;quot;hex&amp;quot; of any CMake project is allowed. If the intentions are
&lt;ul&gt;
&lt;li&gt;to build the test target with a different compiler (to run natively instead of on the embedded device)&lt;/li&gt;
&lt;li&gt;to create a target to run the previously built test&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; then I don&amp;#39;t see an option to do this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger Embedded Studio NCS project - invoke CMake targets</title><link>https://devzone.nordicsemi.com/thread/351095?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 12:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe67a1a7-0a23-4c42-93d6-6ef6d19d0e52</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In order to add additional CMake targets to a project, it should be able to add the &amp;quot;add_test()&amp;quot; function in the project&amp;#39;s &lt;strong&gt;CMakeLists.txt&lt;/strong&gt; file.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>