Skip to content

C++ 23 example project that uses Modules and CMake to generate project for Visual Studio and other compilers

Notifications You must be signed in to change notification settings

sandboxcoder/SpaceTravelerSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space Traveler

Sample project (C++ 23) that utilizes C++ modules with CMake for Visual Studio.
Currently, this project is simply creating a Galaxy of planets (in code).

Building this Project

In order to build you will need to download CMake (at least 3.29.3) to build the solution.

Below is the following command I used to generate the solution on Windows (note for Linux/Unix, use "Unix Makefiles"):

mkdir build
cd build
cmake -G "Visual Studio 17 2022" ..

Implementation notes

Modules are defined within .ixx files as required by Visual Studio (otherwise Intellisense will not work). Also, we set the CMAKE_CXX_SCAN_FOR_MODULES flag.

About

C++ 23 example project that uses Modules and CMake to generate project for Visual Studio and other compilers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published