Build instructions for Windows - Fraunhofer-IIS/iec61937-13 GitHub Wiki

You need to have CMake and at least the Visual Studio Build Tools installed. Optionally, you can use the full installation of Visual Studio, which includes the needed build tools.

  1. Clone the project and make a build folder.

    $ git clone [email protected]:Fraunhofer-IIS/iec61937-13.git
    $ mkdir -p build_windows
    
  2. Configure the project using CMake.

    $ cmake -S iec61937-13 -B build_windows
    

    If you have multiple versions of Visual Studio installed, you can use the -G option to select the wanted Visual Studio version as a generator and the -A option for the architecture.

  3. Build the project.

    $ cmake --build build_windows --config Release
    

    The build/ folder should, dependent on the set configuration, now contain:

    • lib/Release subfolder with the built project libraries
    • bin/Release subfolder with the built project binaries (e.g. example programs)
    • doc/Release subfolder with the generated Doxygen documentation

    Change the --config option if needed.

If you need to build with a specific setting for the MSVC runtime library, please set the CMAKE_MSVC_RUNTIME_LIBRARY cache variable in step 2.

If you have the full Visual Studio IDE installed, you can open the generated solution file after step 2 to view, edit and run the program within the IDE.