This repo demonstrates the full capabilities of Cyberpunk CMake - a collection of CMake scripts & tools to aid in Cyberpunk 2077 mod creation.
See the Cyberpunk CMake repo for full toolset features
- Github Actions workflow for building with game_dir artifact upload
.redscript-ide
withredscript_dir
allows other/duplicate redscript files to exist ingame_dir
/repo without linting breaking- VS Code integration configure, build & install tasks and
CMake: Project Outline
support
- Click "Use this template" on the Github page to create a new repo that uses this as the base.
- Recursively clone the repo with
git clone --recurse-submodules <repo>
- this will clone the cyberpunk_cmake repo, along with the RED4ext.SDK (currently Jack's branch) - Open the
cyberpunk_cmake_mod.code-workspace
file (or rename it first) in VS Code - Install the recommended extensions, as well as redscript-ide-vscode from the .vsix
- Click the CMake icon on the left side (you can drag this to be in the same panel as your file explorer to access it more easily)
- Customize the project via
CMakeLists.txt
- Configure the project in one of the following ways:
- Click the "Configure All Projects" at the top of the CMake panel
- Run the "Configure" task
- Run
cmake -B build
in the terminal - Save the
CMakeLists.txt
to automatically trigger a reconfigure
- Build the project in one of the following ways:
- Click the "Build" button next to the
ALL_BUILD
orproject_slug
targets to build the entire project (or select a particular target to build just that and its dependencies) - Run the "Build" task
- Run
cmake --build build
cmake --build build --target <target>
can be used to specify a target
- Click the "Build" button next to the
- Commit & push your changes to your Github repo, and a CI build will be triggered, where a zip of the game_dir will be available for you to download