<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CMAKE ADDON in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/252104#M2009</link>
    <description>Based on running your solution above, which was successful -- Thank you:  I would have to say Yes with some qualifications.&lt;BR /&gt;
&lt;BR /&gt;
The new API package should not install the package in the programs folder anymore as default This would eliminate the necessity of running VS in admin mode. it would be of an advantage to also include a cmd exe file in each folder which would automatically execute the cmake without using the power shell manually -- at least, on windows. -- But not a serious problem&lt;BR /&gt;
&lt;BR /&gt;
Also would like to see more blogs on how to alter cmakelist.txt to include other things from the examples. Cmake is very complicated and tries to be all things to all. One can easily get "lost" in the documentation. Color coding or commenting lines that can be changed and why, would be very helpful.&lt;BR /&gt;
The DEVKIT examples are great but the C++ APi is very complicated and examples within the documentation are very sparse.I find myself often using cut and paste which mostly works but only mostly. Graphisoft should make that process easier keeping in mind the above problems. Perhaps just a section of some CPP utility files that could be included as above? But, on the whole, I think this will be very helpful to encourage more participation. &lt;BR /&gt;
&lt;BR /&gt;
On another note, but related: I have some very serious concerns regarding the Python APi. I would be interested in your comments in the Beta?</description>
    <pubDate>Tue, 16 Mar 2021 20:05:33 GMT</pubDate>
    <dc:creator>poco2013</dc:creator>
    <dc:date>2021-03-16T20:05:33Z</dc:date>
    <item>
      <title>CMAKE ADDON</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/252101#M2006</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I am trying to create some basic test addons using the cmake utility for a bare starting template:&lt;BR /&gt;&lt;BR /&gt;Using the example "CMAKE Template for Archicad AddOns" as a basis:&lt;BR /&gt;&lt;BR /&gt;The example compiles and works fine by itself but it contains only a rudimentary Dialog example. I would like to include the utility functions such as clickAnpoint, clickAnelem, etc. as contained in the APICommon.c &amp;amp; ,h files but when I include them in the source folder the solution will not compile. I assuming I must add a module or something to the CMAKE file but what? No example for doing this is given.&lt;BR /&gt;&lt;BR /&gt;What do I need to add to "cmakelist.txt" to add and compile the common files as are used in all the examples?? The demo mentions that additional modules can be added at the end (i.e.: AddGSModule (AddOn GSUtils GSUtils) but does not describe what is needed for what.&lt;BR /&gt;The c files are included in all the other API examples and are mostly needed for any project to do anything. Would be nice if Graphisoft would revise its Demo to include them but, if not, i need some help to do it my self?&lt;BR /&gt;I am using the cmake template for archicad addons code example as listed in the Developer site Blog. &lt;BR /&gt;&lt;BR /&gt;Thanks for any help!&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:53:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/252101#M2006</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2021-09-14T07:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: CMAKE ADDON</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/252102#M2007</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm happy to hear that you are using CMake!&lt;BR /&gt;
It's good news for us because we are planning to give CMakeLists.txt file for each example Add-On in our DevKit.&lt;BR /&gt;
The attached&lt;BR /&gt;

 &lt;BR /&gt;
contains the Browser_Control example Add-On with a CMakeLists.txt. You have to place the script from &lt;BR /&gt;

 &lt;BR /&gt;
to the Support/Tools folder to use CMake for building.&lt;BR /&gt;
The attached CMakeLists.txt can be a universal CMake file for Add-Ons, just make sure you placed the surce files (.c, .cpp, .grc, .rc2 etc.) into the right folder structure and it should work.&lt;BR /&gt;
&lt;BR /&gt;
The problem you faced is that the source files with .c extension are treated as pure C files by CMake, so it won't compile them as Cpp files. You have to tell CMake explicitly to compile them as Cpp:&lt;BR /&gt;

&lt;PRE&gt;file (GLOB AllCFiles
	${AddOnSourcesFolder}/*.c
)
set_source_files_properties(${AllCFiles} PROPERTIES LANGUAGE CXX)&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Mar 2021 17:09:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/252102#M2007</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2021-03-16T17:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: CMAKE ADDON</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/252103#M2008</link>
      <description>I would like to ask your opinion on the following topic:&lt;BR /&gt;
How about each Example in the API DevKit would contain one CMakeLists.txt file?&lt;BR /&gt;
Do you agree that the Visual Studio (.vcxproj) and Xcode (.xcodeproj) IDE files are not necessary to be included anymore that way?&lt;BR /&gt;
&lt;BR /&gt;
Note, the Visual Studio and Xcode project files can be generated by CMake. But the generated files are not portable (containing the absolute path and other local links), so we are not able to place them into the DevKit.</description>
      <pubDate>Tue, 16 Mar 2021 17:23:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/252103#M2008</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2021-03-16T17:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: CMAKE ADDON</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/252104#M2009</link>
      <description>Based on running your solution above, which was successful -- Thank you:  I would have to say Yes with some qualifications.&lt;BR /&gt;
&lt;BR /&gt;
The new API package should not install the package in the programs folder anymore as default This would eliminate the necessity of running VS in admin mode. it would be of an advantage to also include a cmd exe file in each folder which would automatically execute the cmake without using the power shell manually -- at least, on windows. -- But not a serious problem&lt;BR /&gt;
&lt;BR /&gt;
Also would like to see more blogs on how to alter cmakelist.txt to include other things from the examples. Cmake is very complicated and tries to be all things to all. One can easily get "lost" in the documentation. Color coding or commenting lines that can be changed and why, would be very helpful.&lt;BR /&gt;
The DEVKIT examples are great but the C++ APi is very complicated and examples within the documentation are very sparse.I find myself often using cut and paste which mostly works but only mostly. Graphisoft should make that process easier keeping in mind the above problems. Perhaps just a section of some CPP utility files that could be included as above? But, on the whole, I think this will be very helpful to encourage more participation. &lt;BR /&gt;
&lt;BR /&gt;
On another note, but related: I have some very serious concerns regarding the Python APi. I would be interested in your comments in the Beta?</description>
      <pubDate>Tue, 16 Mar 2021 20:05:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/252104#M2009</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2021-03-16T20:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: CMAKE ADDON</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/252105#M2010</link>
      <description>&lt;BLOCKQUOTE&gt;poco2013 wrote:&lt;BR /&gt;The new API package should not install the package in the programs folder anymore as default. This would eliminate the necessity of running VS in admin mode.&lt;/BLOCKQUOTE&gt;Thank you for your idea! What would be your preferred choice for default installation location?&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;poco2013 wrote:&lt;BR /&gt;It would be of an advantage to also include a cmd exe file in each folder which would automatically execute the cmake&lt;/BLOCKQUOTE&gt;This would work only if the DevKit would contain the cmake or the user installs manually the cmake and includes its location in the environment variable.&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;poco2013 wrote:&lt;BR /&gt;Also would like to see more blogs on how to alter cmakelist.txt to include other things from the examples. Cmake is very complicated and tries to be all things to all. One can easily get "lost" in the documentation. Color coding or commenting lines that can be changed and why, would be very helpful.&lt;/BLOCKQUOTE&gt;I agree, it's not so easy to write CMake configuration files. I hope we will have time to make a blog post to explain our CMakeLists.txt file line by line. However I think an average user won't look inside the CMakeLists.txt, he/she will just execute CMake, because our CMakeLists.txt will be universally usable for any Add-On projects.&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;poco2013 wrote:&lt;BR /&gt;On another note, but related: I have some very serious concerns regarding the Python APi. I would be interested in your comments in the Beta?&lt;/BLOCKQUOTE&gt;If you are an Archicad25 Beta user, then you can post bugs or your issues into our system. If you've already done that, then we will work on it soon. I'm sure I will bump into it if it's related to Python API &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; &lt;BR /&gt;
If you have general (not Beta version) related API issue, then feel free to post it &lt;A href="https://graphisoft.atlassian.net/servicedesk/customer/portal/5" target="_blank"&gt;at our API Support System&lt;/A&gt;.</description>
      <pubDate>Wed, 17 Mar 2021 11:00:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/252105#M2010</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2021-03-17T11:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: CMAKE ADDON</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/309260#M2011</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/11183"&gt;@Tibor Lorantfy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;How about each Example in the API DevKit would contain one CMakeLists.txt file?&lt;BR /&gt;Do you agree that the Visual Studio (.vcxproj) and Xcode (.xcodeproj) IDE files are not necessary to be included anymore that way?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think that's a good idea, shipping CMakeLists.txt files with each Example. That should also make the dev kits for Windows &amp;amp; MacOS platforms a bit more alike, (and probably make it easier to set up source files for building the addon on one platform using the file-set for the other platform)&lt;/P&gt;&lt;P&gt;Another advantage: It would help in building the examples by using other IDEs (like vscode) instead of Visual Studio.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 09:21:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/CMAKE-ADDON/m-p/309260#M2011</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2021-10-14T09:21:39Z</dc:date>
    </item>
  </channel>
</rss>

