Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 2.27 KB

BUILD-Windows.md

File metadata and controls

57 lines (40 loc) · 2.27 KB

Developing ApprovalTests.cpp on Windows

Contents

Prerequisites

  • CMake 3.8 or higher
  • A C++11 or above compiler to use the library
  • A C++17 or above compiler to run the project's own tests

Dependencies

Visual Studio 2017 Community Edition

Use CMake to generate Visual Studio 2017 configuration

Decide where to put the build files that CMake will generate. In the following, we're putting the output in cmake-build-vs - that location is already ignored by git.

  1. Open a Command window

  2. Then run:

     cd ApprovalTests.cpp
     mkdir cmake-build-vs
     cd    cmake-build-vs
     cmake -G "Visual Studio 15 2017" ..
    

CLion

Use CLion with Visual Studio installed

  • Follow the instructions for experimental support of Microsoft Visual C++ compiler
  • Output is put in cmake-build-debug
  • Tested with Visual Studio 2017
  • Major limitation: Debugging is not yet supported by CLion, when compiling with Visual Studio, as of CLion 2017.3.3

Run CLion with cygwin as toolset

  • Code builds fine
  • Tests run fine
  • Reporters run fine