Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

A better integration of Discord's Legacy SDK for CMake-based projects

License

Notifications You must be signed in to change notification settings

feivegian/discord-gamesdk-cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord GameSDK for CMake

A better integration of Discord's Legacy SDK for CMake-based projects

Overview

With the release of Discord GameSDK, a few integrations of bringing it to CMake projects has been overwhelmingly painful. As a result, this was created for a better integration.

How to Use

Clone this repository as a sub-module of your Git repository.

Extracting GameSDK libraries

Grab Discord GameSDK here, extract the contents of the lib/x86_64 folder and paste it to this project's lib folder.

Note

The lib folder is not included by default, you must do it yourself.

Important

Contents may vary depending on your selected machine architecture.

For example, if your machine is 32-bit, you may copy files from lib/x86 instead

Modify your project's CMakeLists

Add these lines to your project's CMakeLists.txt:

add_subdirectory(discord_gamesdk_cmake)
...
...
target_link_libraries(YOUR_TARGET
	discord_gamesdk
	...
	)

Structure

  • lib - Where the GameSDK library files reside, read Extracting GameSDK libraries for more information.
  • src - Source and header files for Discord GameSDK, which makes use of the Discord GameSDK libraries.

License

This project is licensed under the Unlicense.

About

A better integration of Discord's Legacy SDK for CMake-based projects

Topics

Resources

License

Stars

Watchers

Forks