Skip to content

Bringing Discord GameSDK to CMake build system.

License

Notifications You must be signed in to change notification settings

borfei/discord-gamesdk-cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord GameSDK for CMake-based projects

Bringing Discord GameSDK to CMake build system.

Table of Contents

Overview

This project aims to integrate Discord GameSDK into CMake, enabling features like rich presence, voice chat, achievements, and networking. The integration is streamlined for cross-platform compatibility, making it easier to build.

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.