Files
CMake/Tests/VSWinStorePhone/WinRT/CMakeLists.txt
Gilles Khouzam cff026dbc0 VS: Fix WinRT component references
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
2019-02-01 13:04:52 -05:00

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"
)