Build instructions for MacOS - Fraunhofer-IIS/iec61937-13 GitHub Wiki
You need to have CMake and Xcode installed.
- Clone the project and make a build folder.
$ git clone [email protected]:Fraunhofer-IIS/iec61937-13.git $ mkdir -p build_macos
- Configure the project using CMake.
Use a toolchain file and set the path to it correctly.$ cmake -S iec61937-13 -B build_macos -G Xcode -DCMAKE_TOOLCHAIN_FILE=<path/to/toolchain-file.cmake>
- Build the project.
The build/ folder should, dependent on the set configuration, now contain:$ cmake --build build_macos --config Release
- lib/ subfolder with the built project libraries
- bin/ subfolder with the built project binaries (e.g. example programs)
- doc/ subfolder with the generated Doxygen documentation
Toolchain files
The parameter CMAKE_TOOLCHAIN_FILE
is added in step 2 of the build instructions above and should point to a file containing a toolchain description. You can find more information on that topic here.
We recommend using one of the following toolchain files: