Skip to content

Commit 7560623

Browse files
committed
Added CMakePresets.json
1 parent 45fb2de commit 7560623

File tree

4 files changed

+94
-107
lines changed

4 files changed

+94
-107
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@
2020
.vs
2121
bin
2222
/out
23+
/CMakeUserPresets.json

CMakeLists.txt

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
# DirectX Capabilities Viewer
2-
#
3-
# Copyright (c) Microsoft Corporation. All rights reserved.
1+
# Copyright (c) Microsoft Corporation.
42
# Licensed under the MIT License.
5-
#
6-
# https://go.microsoft.com/fwlink/?linkid=2136896
73

8-
cmake_minimum_required (VERSION 3.11)
4+
cmake_minimum_required (VERSION 3.13)
95

10-
project (dxcapsviewer LANGUAGES CXX)
6+
project (dxcapsviewer
7+
DESCRIPTION "DirectX Capabilities Viewer"
8+
HOMEPAGE_URL "https://go.microsoft.com/fwlink/?linkid=2136896"
9+
LANGUAGES CXX)
1110

1211
option(ENABLE_CODE_ANALYSIS "Use Static Code Analysis on build" OFF)
1312

CMakePresets.json

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"version": 2,
3+
"configurePresets": [
4+
{
5+
"name": "base",
6+
"displayName": "Basic Config",
7+
"description": "Basic build using Ninja generator",
8+
"generator": "Ninja",
9+
"hidden": true,
10+
"binaryDir": "${sourceDir}/out/build/${presetName}",
11+
"cacheVariables": { "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}" }
12+
},
13+
14+
{
15+
"name": "x64",
16+
"architecture": {
17+
"value": "x64",
18+
"strategy": "external"
19+
},
20+
"hidden": true
21+
},
22+
{
23+
"name": "x86",
24+
"architecture": {
25+
"value": "x86",
26+
"strategy": "external"
27+
},
28+
"hidden": true
29+
},
30+
{
31+
"name": "ARM64",
32+
"architecture": {
33+
"value": "arm64",
34+
"strategy": "external"
35+
},
36+
"hidden": true
37+
},
38+
39+
{
40+
"name": "Debug",
41+
"cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" },
42+
"hidden": true
43+
},
44+
{
45+
"name": "Release",
46+
"cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo" },
47+
"hidden": true
48+
},
49+
50+
{
51+
"name": "MSVC",
52+
"hidden": true,
53+
"cacheVariables": {
54+
"CMAKE_CXX_COMPILER": "cl.exe"
55+
},
56+
"toolset": {
57+
"value": "host=x64",
58+
"strategy": "external"
59+
}
60+
},
61+
{
62+
"name": "Clang",
63+
"hidden": true,
64+
"cacheVariables": {
65+
"CMAKE_CXX_COMPILER": "clang-cl.exe"
66+
},
67+
"toolset": {
68+
"value": "host=x64",
69+
"strategy": "external"
70+
}
71+
},
72+
73+
{ "name": "x64-Debug" , "description": "MSVC for x64 (Debug) - SSE/SSE2", "inherits": [ "base", "x64", "Debug", "MSVC" ] },
74+
{ "name": "x64-Release" , "description": "MSVC for x64 (Release) - SSE/SSE2", "inherits": [ "base", "x64", "Release", "MSVC" ] },
75+
{ "name": "x86-Debug" , "description": "MSVC for x86 (Debug) - SSE/SSE2", "inherits": [ "base", "x86", "Debug", "MSVC" ] },
76+
{ "name": "x86-Release" , "description": "MSVC for x86 (Release) - SSE/SSE2", "inherits": [ "base", "x86", "Release", "MSVC" ] },
77+
{ "name": "arm64-Debug" , "description": "MSVC for ARM64 (Debug) - ARM-NEON", "inherits": [ "base", "ARM64", "Debug", "MSVC" ] },
78+
{ "name": "arm64-Release", "description": "MSVC for ARM64 (Release) - ARM-NEON", "inherits": [ "base", "ARM64", "Release", "MSVC" ] },
79+
80+
{ "name": "x64-Debug-Clang" , "description": "Clang/LLVM for x64 (Debug) - SSE/SSE2", "inherits": [ "base", "x64", "Debug", "Clang" ] },
81+
{ "name": "x64-Release-Clang" , "description": "Clang/LLVM for x64 (Release) - SSE/SSE2", "inherits": [ "base", "x64", "Release", "Clang" ] },
82+
{ "name": "x86-Debug-Clang" , "description": "Clang/LLVM for x86 (Debug) - SSE/SSE2", "inherits": [ "base", "x86", "Debug", "Clang" ], "environment": { "CXXFLAGS": "-m32" } },
83+
{ "name": "x86-Release-Clang" , "description": "Clang/LLVM for x86 (Release) - SSE/SSE2", "inherits": [ "base", "x86", "Release", "Clang" ], "environment": { "CXXFLAGS": "-m32" } },
84+
{ "name": "arm64-Debug-Clang" , "description": "Clang/LLVM for AArch64 (Debug) - ARM-NEON", "inherits": [ "base", "ARM64", "Debug", "Clang" ], "environment": { "CXXFLAGS": "--target=arm64-pc-windows-msvc" } },
85+
{ "name": "arm64-Release-Clang", "description": "Clang/LLVM for AArch64 (Release) - ARM-NEON", "inherits": [ "base", "ARM64", "Release", "Clang" ], "environment": { "CXXFLAGS": "--target=arm64-pc-windows-msvc" } }
86+
]
87+
}

CMakeSettings.json

-100
This file was deleted.

0 commit comments

Comments
 (0)