Skip to content
This repository was archived by the owner on Oct 5, 2025. It is now read-only.

borfei/discord-gamesdk-cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord GameSDK for CMake

Note

This is no longer maintained as the official Discord GameSDK has been deprecated.

Overview

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.

Usage

  1. 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.
  2. Manually download the additional SDK files:
    • There are two versions provided in the official SDK documentation:
      • v3.2.1 - Latest version, includes support for AArch64
      • v2.5.6 - Stable version, very stable
    • Once downloaded, open the archive and extract the lib/ folder to this project (not your project)
  3. Modify your project's CMakeLists.txt:
    add_subdirectory(<path/to/discord-gamesdk-cmake>)
    ...
    target_link_libraries(<TARGET>
    	...
    	discord_gamesdk)
  4. Profit

License

This project is licensed under the Unlicense license, see LICENSE for more information.

About

Bringing Discord GameSDK to CMake build system.

Topics

Resources

License

Stars

Watchers

Forks