We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.

Getting started with Archicad Add-Ons - problem

szcsaba87
Participant

Hi,

 

I've recently started learning API. I stuck at the very beginning with the use of template.

In VS I see two problems:

- There is no CMakeCommon.cmake file in my Tools folder.

Unknown CMake command "SetGlobalCompilerDefinitions".

What's wrong?

Thanks

1 REPLY 1

Hi!


Are you using the following template? https://github.com/GRAPHISOFT/archicad-addon-cmake
If so, then I think you are missing this submodule: https://github.com/GRAPHISOFT/archicad-addon-cmake-tools
You should clone the template (first link) as described in the readme with

 

git clone https://github.com/GRAPHISOFT/archicad-addon-cmake.git --recurse-submodules

 

and also follow the other steps described in the readme.

 

Hope that helps!

Bernd