mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 05:49:01 +08:00
411929e664
* [discord-game-sdk] new port * [discord-game-sdk] Invert Supports field * [discord-game-sdk] Fix Supports field * [discord-game-sdk] Fix Supports field again * [discord-game-sdk] Update find_library * [discord-game-sdk] Rename LICENSE.md, remove include(vcpkg_common_functions) * [discord-game-sdk] Fix Linux build, add usage file * [discord-game-sdk] Add missing file(INSTALL) * [discord-game-sdk] Update baseline and fix macOS build * [discord-game-sdk] Specify C++ standard version * [discord-game-sdk] Remove vcpkg_copy_pdbs * [discord-game-sdk] Replace ToS text by link to online version
13 lines
488 B
Plaintext
13 lines
488 B
Plaintext
The package discord-game-sdk does not provides CMake integration:
|
|
|
|
find_library(GAME_SDK discord_game_sdk)
|
|
target_link_libraries(<my_target> PRIVATE ${GAME_SDK})
|
|
|
|
find_path(GAME_SDK_INCLUDE discord-game-sdk/discord.h)
|
|
target_include_directories(<my_target> PRIVATE ${GAME_SDK_INCLUDE})
|
|
|
|
The C++ SDK source code is compiled in a static library:
|
|
|
|
find_library(CPP_GAME_SDK discord_game_sdk_cpp)
|
|
target_link_libraries(<my_target> PRIVATE ${CPP_GAME_SDK})
|