mirror of
https://github.com/Kitware/CMake.git
synced 2026-06-30 19:57:41 +00:00
WinRT components need to be referenced in a similar way that managed code libraries are referenced. Validate that the library reference is a WinRT component and reference it through the project. Add test coverage for `VS_WINRT_COMPONENT`. While at it, fix the IOT reference failing on Win10 SDK 17763 which doesn't include it anymore. Fixes: #18846
14 lines
337 B
CMake
14 lines
337 B
CMake
project(JusticeLeagueWinRT CXX)
|
|
|
|
# create project
|
|
add_library(JusticeLeagueWinRT SHARED
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/Batman.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/Batman.h"
|
|
)
|
|
|
|
set_target_properties(JusticeLeagueWinRT PROPERTIES
|
|
VS_WINRT_COMPONENT TRUE
|
|
VS_GLOBAL_ROOTNAMESPACE "JusticeLeagueWinRT"
|
|
OUTPUT_NAME "JusticeLeagueWinRT"
|
|
)
|