Note
This is no longer maintained as the official Discord GameSDK has been deprecated.
A lightweight CMake integration helper for Discord GameSDK. It removes the hassle of manually configuring library paths, include directories, and linking steps when adding Discord features (rich presence, voice, achievements, etc.) to your C/C++ projects.
With this project, you can:
- Easily embed the SDK into any CMake-based build system.
- Link your targets with a simple
target_link_libraries(... discord_gamesdk). - Choose between supported GameSDK versions (e.g. v2.5.6 for stability or v3.2.1 with AArch64 support).
- Keep your project structure clean by isolating all Discord SDK build logic.
- The goal is to provide a plug-and-play way of using Discord’s GameSDK without writing repetitive CMake boilerplate.
- Add the repository as a sub-module:
git submodule add https://github.com/borfei/discord-gamesdk-cmake.git
- Alternatively, you can download the source code here.
- Manually download the additional SDK files:
- Modify your project's
CMakeLists.txt:add_subdirectory(<path/to/discord-gamesdk-cmake>) ... target_link_libraries(<TARGET> ... discord_gamesdk)
- Profit
This project is licensed under the Unlicense license, see LICENSE for more information.