BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
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

Bernd Schwarzenbacher - Archicad Add-On Developer - Get Add-Ons & Archicad Tips on my Website: Archi-XT.com
Learn and get certified!