vcpkg/ports/dstorage/dstorage-config.cmake.in
Chuck Walbourn 4415a0f31b
[dstorage] Add port for Microsoft.Direct3D.DirectStorage NuGet (#24063)
* [dstorage] new port for Microsoft.Direct3D.DirectStorage NuGet

* Format fix

* Update baseline

* Moved headers up a folder per code review

* Update baselnie

* More code review feedback

* Refresh baseline
2022-04-11 17:28:18 -07:00

26 lines
812 B
CMake

get_filename_component(_dstorage_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_dstorage_root "${_dstorage_root}" PATH)
get_filename_component(_dstorage_root "${_dstorage_root}" PATH)
set(_dstorage_root_lib "${_dstorage_root}/lib/dstorage.lib")
if (EXISTS "${_dstorage_root_lib}")
add_library(Microsoft::DirectStorage SHARED IMPORTED)
set_target_properties(Microsoft::DirectStorage PROPERTIES
IMPORTED_LOCATION "${_dstorage_root}/bin/dstorage.dll"
IMPORTED_IMPLIB "${_dstorage_root_lib}"
INTERFACE_INCLUDE_DIRECTORIES "${_dstorage_root}/include"
IMPORTED_LINK_INTERFACE_LANGUAGES "C")
set(dstorage_FOUND TRUE)
else()
set(dstorage_FOUND FALSE)
endif()
unset(_dstorage_root_lib)
unset(_dstorage_root)