Using CMake to Generate the Microsoft Visual Studio Project

CMake is an open-source, cross-platform tool that allows you to build and package software. It requires CMakelists.txt to generate build files.

  1. Download CMake from https://cmake.org/download/.
  2. Run cmake-gui.exe.
    The CMake dialog is displayed.


    Figure 1. The CMake dialog.
  3. In the Where is the source code field, browse to the folder containing CMakeLists.txt.
    Note: For example:

    %FEKO_HOME%\api\winprop\source\Indoor_propagation.

  4. In the Where to build the binaries field, browse to the folder where you want the executable to be built (you might need to create a new folder).
    Note: For example:

    %FEKO_HOME%\api\winprop\source\Indoor_propagation\Build.

  5. Click Configure.
  6. Under Specify the generator for this project, select your Microsoft Visual Studio version.
  7. Click Finish.
  8. After the configuration is complete, click Generate.
  9. Click Open project to open the solution in Microsoft Visual Studio.
    Microsoft Visual Studio is launched.
  10. Exit CMake.