vcpkg/ports/gameinput/gameinput-config.cmake.in
Chuck Walbourn 3bf6fd4baa
[gameinput] Add port to use Microsoft.GameInput from nuget.org (#41762)
Co-authored-by: WangWeiLin-MV <156736127+WangWeiLin-MV@users.noreply.github.com>
2024-10-29 02:08:35 -07:00

13 lines
484 B
CMake

get_filename_component(_gameinput_root "${CMAKE_CURRENT_LIST_DIR}" PATH)
get_filename_component(_gameinput_root "${_gameinput_root}" PATH)
set(_gameinput_root_lib "${_gameinput_root}/lib/gameinput.lib")
add_library(Microsoft::GameInput INTERFACE IMPORTED)
set_target_properties(Microsoft::GameInput PROPERTIES
INTERFACE_LINK_LIBRARIES "${_gameinput_root_lib}"
INTERFACE_INCLUDE_DIRECTORIES "${_gameinput_root}/include")
unset(_gameinput_root_lib)
unset(_gameinput_root)