diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/discord-game-sdk/CMakeLists.txt | |
Diffstat (limited to 'vcpkg/ports/discord-game-sdk/CMakeLists.txt')
| -rw-r--r-- | vcpkg/ports/discord-game-sdk/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/ports/discord-game-sdk/CMakeLists.txt b/vcpkg/ports/discord-game-sdk/CMakeLists.txt new file mode 100644 index 0000000..f5a1d51 --- /dev/null +++ b/vcpkg/ports/discord-game-sdk/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 3.5)
+
+project(discord_game_sdk_cpp)
+
+find_library(SDK_LIB
+ "discord_game_sdk"
+ PATHS "${SDK_LIB_FOLDER}"
+ NO_DEFAULT_PATH
+)
+
+file(GLOB SRC_FILES "${PROJECT_SOURCE_DIR}/cpp/*.cpp")
+file(GLOB_RECURSE HDR_FILES "${PROJECT_SOURCE_DIR}/*.h")
+
+add_library(discord_game_sdk_cpp STATIC ${SRC_FILES})
+target_link_libraries(discord_game_sdk_cpp PUBLIC ${SDK_LIB})
+set_property(TARGET discord_game_sdk_cpp PROPERTY CXX_STANDARD 11)
+
+install(TARGETS discord_game_sdk_cpp ARCHIVE)
+install(FILES ${HDR_FILES} DESTINATION "include/discord-game-sdk")
\ No newline at end of file |