1 # Copyright (C) 2018-2020 Intel Corporation
2 # SPDX-License-Identifier: Apache-2.0
5 set(CMAKE_SYSTEM_NAME WindowsStore)
6 set(CMAKE_SYSTEM_VERSION 10.0)
8 if (NOT DEFINED CMAKE_SYSTEM_PROCESSOR)
9 set(CMAKE_SYSTEM_PROCESSOR ${CMAKE_HOST_SYSTEM_PROCESSOR})
12 file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/src/uwp.hpp"
13 "#ifdef WINAPI_FAMILY\n"
14 "#undef WINAPI_FAMILY\n"
15 "#define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP\n"
18 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FI\"${CMAKE_CURRENT_BINARY_DIR}/src/uwp.hpp\"")
19 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /FI\"${CMAKE_CURRENT_BINARY_DIR}/src/uwp.hpp\"")
21 # UWP setting for package isolation
22 # set(CMAKE_VS_GLOBALS "AppContainerApplication=true")