mirror of https://github.com/microsoft/vcpkg.git
16 lines
579 B
CMake
16 lines
579 B
CMake
get_filename_component(_cppwinrt_root "${CMAKE_CURRENT_LIST_DIR}" PATH)
|
|
get_filename_component(_cppwinrt_root "${_cppwinrt_root}" PATH)
|
|
|
|
if (NOT TARGET Microsoft::CppWinRT)
|
|
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/@lib_name@"
|
|
)
|
|
endif()
|
|
|
|
set(CPPWINRT_TOOL "${_cppwinrt_root}/@tool_path@")
|
|
|
|
unset(_cppwinrt_root)
|