mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +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
19 lines
592 B
CMake
19 lines
592 B
CMake
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") |