Skip to content

Commit 28fd550

Browse files
committed
converted to CMake project
1 parent 3df5fa2 commit 28fd550

28 files changed

+408
-468
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ imgui.ini
77
*.pdb
88
*.lib
99
*.xevtc
10-
vcpkg_installed
10+
vcpkg_installed
11+
cmake-build

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/arcdps_mock.iml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/editor.xml

Lines changed: 102 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cmake_minimum_required(VERSION 3.28)
2+
3+
project(ArcpdsMockDummy)
4+
5+
# add project for log
6+
add_subdirectory(log)
7+
8+
# add project for xevtc (export xevtc.h via vcpkg)
9+
add_subdirectory(xevtc)
10+
11+
# then link those to the arcdps_mock project
12+
13+
add_subdirectory(arcdps_mock)
14+
add_subdirectory(arcdps_collector)

CMakePresets.json

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
{
2+
"version": 10,
3+
"configurePresets": [
4+
{
5+
"name": "default",
6+
"displayName": "Default Config",
7+
"generator": "Ninja",
8+
"binaryDir": "${sourceDir}/cmake-build/${presetName}",
9+
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
10+
"hidden": true
11+
},
12+
{
13+
"name": "debug",
14+
"displayName": "Debug Config",
15+
"inherits": [
16+
"default"
17+
],
18+
"cacheVariables": {
19+
"CMAKE_BUILD_TYPE": "Debug"
20+
},
21+
"hidden": true
22+
},
23+
{
24+
"name": "release",
25+
"displayName": "Release Config",
26+
"inherits": [
27+
"default"
28+
],
29+
"cacheVariables": {
30+
"CMAKE_BUILD_TYPE": "Release"
31+
},
32+
"hidden": true
33+
},
34+
{
35+
"name": "debug-windows",
36+
"inherits": [
37+
"debug"
38+
],
39+
"cacheVariables": {
40+
"VCPKG_TARGET_TRIPLET": "x64-windows-static"
41+
},
42+
"condition": {
43+
"type": "equals",
44+
"lhs": "${hostSystemName}",
45+
"rhs": "Windows"
46+
}
47+
},
48+
{
49+
"name": "release-windows",
50+
"inherits": [
51+
"release"
52+
],
53+
"cacheVariables": {
54+
"VCPKG_TARGET_TRIPLET": "x64-windows-static"
55+
},
56+
"condition": {
57+
"type": "equals",
58+
"lhs": "${hostSystemName}",
59+
"rhs": "Windows"
60+
}
61+
},
62+
{
63+
"name": "release-windows-clang",
64+
"inherits": [
65+
"release-windows"
66+
],
67+
"cacheVariables": {
68+
"CMAKE_CXX_COMPILER": "clang.exe",
69+
"CMAKE_LINKER": "lld-link.exe",
70+
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
71+
"VCPKG_TARGET_TRIPLET": "x64-windows-clang-static",
72+
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/cmake/vcpkg"
73+
},
74+
"condition": {
75+
"type": "equals",
76+
"lhs": "${hostSystemName}",
77+
"rhs": "Windows"
78+
}
79+
},
80+
{
81+
"name": "debug-windows-clang",
82+
"inherits": [
83+
"debug-windows"
84+
],
85+
"cacheVariables": {
86+
"CMAKE_CXX_COMPILER": "clang.exe",
87+
"CMAKE_LINKER": "lld-link.exe",
88+
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
89+
"VCPKG_TARGET_TRIPLET": "x64-windows-clang-static",
90+
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/cmake/vcpkg"
91+
},
92+
"condition": {
93+
"type": "equals",
94+
"lhs": "${hostSystemName}",
95+
"rhs": "Windows"
96+
}
97+
}
98+
],
99+
"buildPresets": [
100+
{
101+
"name": "debug-windows",
102+
"configurePreset": "debug-windows",
103+
"condition": {
104+
"type": "equals",
105+
"lhs": "${hostSystemName}",
106+
"rhs": "Windows"
107+
}
108+
},
109+
{
110+
"name": "release-windows",
111+
"configurePreset": "release-windows",
112+
"condition": {
113+
"type": "equals",
114+
"lhs": "${hostSystemName}",
115+
"rhs": "Windows"
116+
}
117+
},
118+
{
119+
"name": "release-windows-clang",
120+
"configurePreset": "release-windows-clang",
121+
"condition": {
122+
"type": "equals",
123+
"lhs": "${hostSystemName}",
124+
"rhs": "Windows"
125+
}
126+
},
127+
{
128+
"name": "debug-windows-clang",
129+
"configurePreset": "debug-windows-clang",
130+
"condition": {
131+
"type": "equals",
132+
"lhs": "${hostSystemName}",
133+
"rhs": "Windows"
134+
}
135+
}
136+
]
137+
}

0 commit comments

Comments
 (0)