GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ApprovalTests.cpp/BUILD-Windows.md at master · approvals/ApprovalTests.cpp

Expand file tree

/

BUILD-Windows.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
57 lines (40 loc) · 2.27 KB
/

BUILD-Windows.md

Copy path

File metadata and controls

57 lines (40 loc) · 2.27 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Developing ApprovalTests.cpp on Windows

Contents

  • Prerequisites
  • Dependencies
  • Visual Studio 2017 Community Edition
    • Use CMake to generate Visual Studio 2017 configuration
  • CLion
    • Use CLion with Visual Studio installed
    • Run CLion with cygwin as toolset

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

  • See third_party/ for the test frameworks that are included in this project.
  • Source code for the Google Test framework - version 1.8.1 - is downloaded automatically when CMake is run - see /CMake/googletest/CMakeLists.txt.in, and is then built when the project is built.
  • Similarly, the {fmt} library is downloaded automatically when CMake is run - see /CMake/fmt/CMakeLists.txt.in, and is then built when the project is built.
  • Boost needs to be found by CMake's find_package() - see /tests/Boost_Tests/CMakeLists.txt.

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
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.