summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VS10Project/VsDpiAware.cmake
diff options
context:
space:
mode:
authorMatt Weir <mattweir73@gmail.com>2019-06-16 00:27:13 (GMT)
committerBrad King <brad.king@kitware.com>2019-06-26 13:55:49 (GMT)
commitcd92f8f8bf9d3312f195ac5c27c129ff7868fa7e (patch)
treebc5baa382c6b204250799e5f0682a83701272bba /Tests/RunCMake/VS10Project/VsDpiAware.cmake
parent6f7b68e7f969ae39622492b27a6f4bbb79d25117 (diff)
downloadCMake-cd92f8f8bf9d3312f195ac5c27c129ff7868fa7e.zip
CMake-cd92f8f8bf9d3312f195ac5c27c129ff7868fa7e.tar.gz
CMake-cd92f8f8bf9d3312f195ac5c27c129ff7868fa7e.tar.bz2
VS: Add VS_DPI_AWARE target property
Enables setting the visual studio project property for Manifests, controlling the DPI Aware setting.
Diffstat (limited to 'Tests/RunCMake/VS10Project/VsDpiAware.cmake')
-rw-r--r--Tests/RunCMake/VS10Project/VsDpiAware.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/RunCMake/VS10Project/VsDpiAware.cmake b/Tests/RunCMake/VS10Project/VsDpiAware.cmake
new file mode 100644
index 0000000..74e3d21
--- /dev/null
+++ b/Tests/RunCMake/VS10Project/VsDpiAware.cmake
@@ -0,0 +1,19 @@
+set(CMAKE_CONFIGURATION_TYPES Debug)
+enable_language(C)
+enable_language(CXX)
+
+add_executable(DPIAWARE-default-C empty.c)
+add_executable(DPIAWARE-default-CXX empty.cxx)
+
+add_executable(DPIAWARE-TGT-PERMONITOR-C empty.c)
+set_property(TARGET DPIAWARE-TGT-PERMONITOR-C PROPERTY VS_DPI_AWARE "PerMonitor")
+add_executable(DPIAWARE-TGT-PERMONITOR-CXX empty.cxx)
+set_property(TARGET DPIAWARE-TGT-PERMONITOR-CXX PROPERTY VS_DPI_AWARE "PerMonitor")
+add_executable(DPIAWARE-TGT-ON-C empty.c)
+set_property(TARGET DPIAWARE-TGT-ON-C PROPERTY VS_DPI_AWARE ON)
+add_executable(DPIAWARE-TGT-ON-CXX empty.cxx)
+set_property(TARGET DPIAWARE-TGT-ON-CXX PROPERTY VS_DPI_AWARE ON)
+add_executable(DPIAWARE-TGT-OFF-C empty.c)
+set_property(TARGET DPIAWARE-TGT-OFF-C PROPERTY VS_DPI_AWARE OFF)
+add_executable(DPIAWARE-TGT-OFF-CXX empty.cxx)
+set_property(TARGET DPIAWARE-TGT-OFF-CXX PROPERTY VS_DPI_AWARE OFF)