A better integration of Discord's Legacy SDK for CMake-based projects
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.
Clone this repository as a sub-module of your Git repository.
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
Add these lines to your project's CMakeLists.txt
:
add_subdirectory(discord_gamesdk_cmake)
...
...
target_link_libraries(YOUR_TARGET
discord_gamesdk
...
)
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.
This project is licensed under the Unlicense.