mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 12:47:59 +08:00
904a51f8e5
* [cppwinrt] rewrote port to leverage cppwinrt.exe tool from nuget.org * Reformat * Update baseline * Update ports/cppwinrt/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/cppwinrt/CMakeLists.txt.in Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/cppwinrt/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/cppwinrt/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/cppwinrt/CMakeLists.txt.in Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/cppwinrt/CMakeLists.txt.in Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/cppwinrt/CppWinRT-config.cmake.in Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Simplifed CMakeLists.txt * Update baseline * Fix build break * Update baseline * Still need SDK version scanning fallback for ADO pipelines * Refresh baseline * Additional code review * Update baseline * Don't need a config-version file for a VCPKG only CMake * Baseline update * [cppwinrt] Simplify port * Update ports/cppwinrt/vcpkg.json Co-authored-by: LilyWangLL <94091114+LilyWangLL@users.noreply.github.com> * Update baseline Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: LilyWangLL <94091114+LilyWangLL@users.noreply.github.com>
15 lines
552 B
CMake
15 lines
552 B
CMake
set(CppWinRT_FOUND TRUE)
|
|
|
|
if(NOT TARGET Microsoft::CppWinRT)
|
|
get_filename_component(cppwinrt_root "${CMAKE_CURRENT_LIST_DIR}" PATH)
|
|
get_filename_component(cppwinrt_root "${cppwinrt_root}" PATH)
|
|
|
|
add_library(Microsoft::CppWinRT INTERFACE IMPORTED)
|
|
set_target_properties(Microsoft::CppWinRT PROPERTIES
|
|
INTERFACE_COMPILE_FEATURES cxx_std_17
|
|
INTERFACE_INCLUDE_DIRECTORIES "${cppwinrt_root}/include"
|
|
INTERFACE_LINK_LIBRARIES "${cppwinrt_root}/lib/cppwinrt_fast_forwarder.lib"
|
|
)
|
|
unset(cppwinrt_root)
|
|
endif()
|