forked from OpenCppCoverage/OpenCppCoverage
-
Notifications
You must be signed in to change notification settings - Fork 0
Building OpenCppCoverage
OpenCppCoverage edited this page Apr 8, 2020
·
5 revisions
This page describes how to build OpenCppCoverage from sources.
- Visual Studio 2019 version 16.4.X
Desktop development with C++ - Visual Studio 2019 modules
MFC and ATL support (x86 and x64)andVisual C++ ATL support - Git (
git.exemust be in yourPATH)
Simply run the command: git clone https://github.com/OpenCppCoverage/OpenCppCoverage.git.
Run the following command at the root of the repository:
powershell.exe -executionpolicy bypass -File InstallThirdPartyLibraries.ps1.
Open CppCoverage.sln and build the project OpenCppCoverage.
Remarks:
- You need Visual Studio 2019 module
C++/CLI supportto load the projectTestCppCliand to run the testCppCliTest.ManagedUnManagedModule - You need Visual Studio 2013 to run the test
CodeCoverageRunnerTest.OptimizedBuild
msdia140.dll must be available in the $(TargetDir) of the project:
- Copy
VISUAL_STUDIO_ROOT\DIA SDK\bin\amd64\msdia140.dllto the foldersx64\Debugandx64\Release - Copy
VISUAL_STUDIO_ROOT\DIA SDK\bin\msdia140.dllto the foldersDebugandRelease.
To run OpenCppCoverage, right click on the project OpenCppCoverage, select Set as StartUp Project and run the project.