CopperSpice Overview
|
This following information pertains to building CopperSpice from source and developing C++ applications on Windows using Visual Studio.
Download and install Visual Studio 2019 community edition version 16.6.x or newer.
Support for Visual Studio 2017 has been discontinued. It was discovered and confirmed by Microsoft their compiler was unable to handle valid C++11 and C++17 standards compliant code. These issues were resolved by the Microsoft development team however is was not back ported to prior versions of MSVC.
We are grateful for their willingness to continue compiler improvements by using CopperSpice in their conformance testing.
The following information explains how to build the CopperSpice libraries using MSVC. Developers should be familiar with the basic usage and layout of the Visual Studio IDE.
Building CopperSpice from source
Import the CopperSpice source code and create a new project
Using the source located on our CopperSpice download page
CMakeLists.txt
file, which is located in the root folder Using the source from the CopperSpice GitHub repository
To change the build from Debug to Release mode.
The following steps will configure MSVC to install CopperSpice to your specific path. This process is required for other C++ projects to find the CopperSpice libraries.
The following table is our suggested setup of folder names, there is no requirement to use this exact structure. The CopperSpice source code is located in cs_source
directory. The CMake and Ninja files will be generated during the build process and saved in the cs_build
directory. The cs_lib
directory will be created during the Ninja install step.
Description | Directory Name |
---|---|
CopperSpice Source | cs_source |
CopperSpice Build | cs_build |
CopperSpice Install | cs_lib |
CMAKE_INSTALL_PREFIX
to YOUR_INSTALL_PATH