vcpkg/ports/discord-game-sdk/CMakeLists.txt
Charles Milette 411929e664
[discord-game-sdk] new port (#10763)
* [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
2020-05-06 11:01:30 -07:00

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")