/cpp20-modules

Build cpp20 modules example with cmake

Primary LanguageCMakeApache License 2.0Apache-2.0

Cmake C++20 Modules

Build Status

Getting started

Prerequisites To build and run Cmake C++20 Modules, you will need the following:

  • C++20 or later
  • CMake 3.26 or newer
  • Visual Studio 2022 17.4 (19.34) or newer

Building

To build Cmake C++20 Modules:

  1. Clone the repository:
git clone https://github.com/kybuivan/cmake-cpp20-modules.git
  1. Initialize the cmake submodule recursively:
cd cmake-cpp20-modules
git submodule update --init --recursive
  1. Create a build directory:
mkdir build
cd build
  1. Run CMake:
cmake -Wno-dev ..
  1. Build the project:
cmake --build .

Running

To run Cmake C++20 Modules, simply execute the cmake_cpp20_modules executable that was built in the previous step.

License

This project is licensed under the Apache-2.0 license - see the LICENSE file for details.