Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 4.43 KB

devenv_windows.md

File metadata and controls

85 lines (61 loc) · 4.43 KB

Software Architecture with C++, Second Edition

Software Architecture with C++, Second Edition, Published by Packt

return to README

To compile the examples, you need the recent versions of CMake, Ninja, either MSVC compiler or Clang, and Conan 2.0. Of course for this purpose, you can use the package managers such as Chocolatey, winget.run, and an IDE with bundled tools.

Development tools

The first option is to download the tools and install them:

The second option is the package manager Chocolatey (packages):

choco install cmake
choco install ninja
choco install llvm
choco install conan

The third option is the package manager winget.run:

winget install -e --id Kitware.CMake
winget install -e --id Ninja-build.Ninja
winget install -e --id LLVM.LLVM
winget install -e --id JFrog.Conan

Conan is integrated with different IDEs including CLion (plugin), Qt Creator (plugin), Visual Studio Code (plugin) and Visual Studio (plugin) that support CMake-based projects.

CLion and Qt Creator can compile projects with bundled tools or MSVC compiler on Windows.

Conan and CMake in Visual Studio:

Note

The Visual Studio extension is only compatible with C/C++ projects based on MSBuild. It will not work with CMake-based projects or projects using other technologies. For CMake-based projects, please refer to the cmake-conan dependency provider.

As of the version 3.24, CMake has support for dependency providers. Clone cmake-conan Git repo or just copy conan_provider.cmake somewhere:

git clone https://github.com/conan-io/cmake-conan.git

Open the CMake settings editor to customize build settings, select the Configuration drop-down and choose Manage configurations.... Specify the path to conan_provider.cmake in the variable CMAKE_PROJECT_TOP_LEVEL_INCLUDES. Enter this parameter as the CMake argument -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES="psth_to/conan_provider.cmake"in the field CMake command arguments:. Your configuration will be saved in CMakeSettings.json.

Docker installation

Local Kubernetes installation

Tools to manage Kubernetes clusters and deploy applications