Skip to content

Commit

Permalink
Update CMake presets.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Oct 26, 2024
1 parent f7117c3 commit 579e61b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 22 deletions.
53 changes: 39 additions & 14 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,51 +26,76 @@
"hidden": true
},
{
"name": "WIN32",
"architecture": {
"value": "x64",
"strategy": "set"
},
"name": "WINDOWS",
"cacheVariables": {
"USE_QT": {
"type": "BOOL",
"value": "ON"
},
"BUILD_PSFPLAYER": {
"type": "BOOL",
"value": "ON"
}
},
"hidden": true
},
{
"name": "win32-vs",
"name": "WINDOWS_X86-32",
"inherits": "WINDOWS",
"architecture": {
"value": "Win32",
"strategy": "set"
},
"hidden": true
},
{
"name": "WINDOWS_X86-64",
"inherits": "WINDOWS",
"architecture": {
"value": "x64",
"strategy": "set"
},
"hidden": true
},
{
"name": "windows_x86-32_vs",
"inherits": [
"WINDOWS_X86-32",
"VS"
]
},
{
"name": "windows_x86-64_vs",
"inherits": [
"WIN32",
"WINDOWS_X86-64",
"VS"
]
},
{
"name": "win32-vs-debugger",
"name": "windows_debugger_x86-64_vs",
"inherits": [
"WIN32",
"WINDOWS_X86-64",
"VS",
"DEBUGGER"
]
}
],
"buildPresets": [
{
"name": "win32-vs",
"configurePreset": "win32-vs",
"name": "windows_x86-64_vs",
"configurePreset": "windows_x86-64_vs",
"configuration": "RelWithDebInfo",
"targets": [
"Play",
"CodeGenTestSuite"
]
},
{
"name": "win32-vs-debugger",
"configurePreset": "win32-vs-debugger",
"name": "windows_debugger_x86-64_vs",
"configurePreset": "windows_debugger_x86-64_vs",
"targets": [
"Play"
]
}
]
}
}
5 changes: 1 addition & 4 deletions build_cmake/generate_vs2022_64.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
@echo off
mkdir build_vs2022
pushd build_vs2022
cmake ../.. -G "Visual Studio 17 2022" -A x64 -DUSE_QT=on -DBUILD_LIBRETRO_CORE=yes -DBUILD_PSFPLAYER=on -DCMAKE_PREFIX_PATH="C:\Qt\5.15.2\msvc2019_64"
popd
cmake .. --preset windows_x86-64_vs -DCMAKE_PREFIX_PATH="C:\Qt\5.15.2\msvc2019_64"
5 changes: 1 addition & 4 deletions build_cmake/generate_vs2022_64_debugger.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
@echo off
mkdir build_debugger_vs2022
pushd build_debugger_vs2022
cmake ../.. -G "Visual Studio 17 2022" -A x64 -DUSE_QT=on -DBUILD_PSFPLAYER=on -DDEBUGGER_INCLUDED=on -DCMAKE_PREFIX_PATH="C:\Qt\5.15.2\msvc2019_64"
popd
cmake .. --preset windows_debugger_x86-64_vs -DCMAKE_PREFIX_PATH="C:\Qt\5.15.2\msvc2019_64"

0 comments on commit 579e61b

Please sign in to comment.