We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2020-11-05 04:03 PM - last edited on 2021-09-14 01:41 PM by Noemi Balogh
2021-08-01 02:17 PM
2021-08-01 02:57 PM
2021-10-14 10:53 AM - last edited on 2021-10-18 01:58 AM by Laszlo Nagy
I am trying to include a sub-folder under Sources/AddOn which has some header files that I need to include in some CPP files.
Path to additional header files: Sources/AddOn/SubDir/Include
I tried the following in the CMakeLists.txt:
file (GLOB AddOnHeaderFiles
${AddOnSourcesFolder}/*.h
${AddOnSourcesFolder}/*.hpp
${AddOnSourcesFolder}/SubDir/Include/*.h
)
include_directories("Sources/AddOn/SubDir/Include")
But none of these help cmake include the additional header files in the sub-dir.
For the additional .lib that I need to include, I edited line 171, like so:
file (GLOB LibFilesInFolder ${AC_API_DEVKIT_DIR}/Support/Modules/*/*/*.lib ${AddOnSourcesFolder}/SubDir/Lib/*.lib)
Please tell what's the right way to include source files in sub-directories under Sources/AddOn.
Thanks!
2021-10-19 09:39 AM
Anyone? Need help with this..
2023-01-30 06:22 AM
I downloaded the template file and installed it.
But I don't know which file this is.
Is there any way to know?
2023-01-30 06:29 AM
Try to open the "archicad-addon-cmake-master" folder as a project in Visual Studio.
2023-01-30 10:21 AM
Could you please explain a little longer for the translator?
1. Can I just click the Create a new project button?
2. There are choices like the picture above, but I'm asking because I don't know which one it is.
Are you saying to unzip it differently than before and proceed to Open a project or solution?
2023-01-30 11:15 AM
Decompress/Unzip the archicad-addon-cmake-master.zip folder if you downloaded it. Select "Open a local folder" option in VS to open the unzipped folder. Then probably try: Project > CMake Settings.
2023-01-30 12:59 PM
1
is this right?
1. Strange point Can I go to the support folder at this point?
Doesn't it seem to me that it should be installed on the example?
2. Is there anything else I need to set up next?
Can I just proceed as before?