<?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>Adding C file to sample project in VSCode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92763/adding-c-file-to-sample-project-in-vscode</link><description>Hi 
 I am working with a sample project (Bluetooth: Peripheral UART) for nRF5340DK in VSCode. 
 So I have installed the nRF Connect extension. 
 When I view the currently selected application, under Source Files &amp;gt; Application, there is one file listed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Aug 2024 07:35:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92763/adding-c-file-to-sample-project-in-vscode" /><item><title>RE: Adding C file to sample project in VSCode</title><link>https://devzone.nordicsemi.com/thread/498188?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 07:35:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:458e994a-e43a-407c-a915-8cd65e3ccb54</guid><dc:creator>ralphvn</dc:creator><description>&lt;p&gt;Thanks for the information, it was what I already was doing but I was looking for some kind of option like &amp;quot;Add file to project&amp;quot; or something. But if this is the way to go, I will continue doing it this way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding C file to sample project in VSCode</title><link>https://devzone.nordicsemi.com/thread/498107?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 15:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2890793-b5a0-425f-ab50-91ed7be895fa</guid><dc:creator>Johnny Nguyen</dc:creator><description>&lt;p&gt;Hi Ralph,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is still the way.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a current link:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/config_and_build/cmake/index.html"&gt;Adding files and configuring CMake (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and some examples:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/asset_tracker_v2/CMakeLists.txt"&gt;sdk-nrf/applications/asset_tracker_v2/CMakeLists.txt at v2.7.0 &amp;middot; nrfconnect/sdk-nrf (github.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/droidecahedron/thingy91_mqtt_gnss/blob/main/CMakeLists.txt"&gt;thingy91_mqtt_gnss/CMakeLists.txt at main &amp;middot; droidecahedron/thingy91_mqtt_gnss (github.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding C file to sample project in VSCode</title><link>https://devzone.nordicsemi.com/thread/498076?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 13:38:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93c5c4d2-6e44-435a-ad6f-6ff2c2f0480c</guid><dc:creator>ralphvn</dc:creator><description>&lt;p&gt;I have the same problem but both links are dead, if I add a new file, it is not found while compiling, I solved it by adding it manually to CMakeLists.txt. Is this the way or is there a better way to do this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding C file to sample project in VSCode</title><link>https://devzone.nordicsemi.com/thread/390471?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 13:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad25b0a7-3116-4205-8339-e7acccb905a0</guid><dc:creator>garrettb</dc:creator><description>&lt;p&gt;Thank you - that is exactly the info. I required :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding C file to sample project in VSCode</title><link>https://devzone.nordicsemi.com/thread/390468?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 13:43:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ae64a32-e452-48e6-a427-27f2cf8aa83c</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In order to add a source file, you have to also modify the CMakeLists too. You can take a look at the &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0#h117sk6474thpzmbdphj6gan2vw7rzj:~:text=modify%20child%C2%A0images-,2.2.1%20Include%20header%20and%20source%20files%20to%20your%20project,-If%20your%20project"&gt;Getting Started Guide&lt;/a&gt; and also our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_modifying.html#editing-cmakelist-txt-directly"&gt;modifying application documentation&lt;/a&gt; for the same.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>