Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CMakePresets.json file. #1089

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,3 +1,6 @@
# CMake presets for local build configurations: https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html#build-preset
CMakeUserPresets.json

#################
## Eclipse
#################
Expand Down
44 changes: 44 additions & 0 deletions CMakePresets.json
@@ -0,0 +1,44 @@
{
"version": 2,
"configurePresets": [
{
"name": "x86-Debug",
"displayName": "x86-Debug",
"description": "Visual Studio 16 2019 - x86 - Debug mode",
"generator": "Visual Studio 16 2019",
"toolset": "host=x86",
"architecture": "win32",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install/${presetName}"
}
},
{
"name": "x86-Release",
"displayName": "x86-Release",
"description": "Visual Studio 16 2019 - x86 - Release mode",
"generator": "Visual Studio 16 2019",
"toolset": "host=x86",
"architecture": "win32",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install/${presetName}"
}
},
{
"name": "x86-RelWithDebInfo",
"displayName": "x86-RelWithDebInfo",
"description": "Visual Studio 16 2019 - x86 - Release mode with Debug Info",
"generator": "Visual Studio 16 2019",
"toolset": "host=x86",
"architecture": "win32",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install/${presetName}"
}
}
]
}
32 changes: 32 additions & 0 deletions CMakeUserPresets.json.template
@@ -0,0 +1,32 @@
{
"version": 2,
"configurePresets": [
{
"name": "x86-Debug-install",
"displayName": "x86-Debug-install",
"description": "Visual Studio 16 2019 - x86 - Debug mode - installs binaries to Jedi Academy install directory",
"inherits": "x86-Debug",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "<steam folder>/steamapps/common/Jedi Academy/GameData"
}
},
{
"name": "x86-Release-install",
"displayName": "x86-Release-install",
"description": "Visual Studio 16 2019 - x86 - Release mode - installs binaries to Jedi Academy install directory",
"inherits": "x86-Release",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "<steam folder>/steamapps/common/Jedi Academy/GameData"
}
},
{
"name": "x86-RelWithDebInfo-install",
"displayName": "x86-RelWithDebInfo-install",
"description": "Visual Studio 16 2019 - x86 - Release mode with Debug Info - installs binaries to Jedi Academy install directory",
"inherits": "x86-RelWithDebInfo",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "<steam folder>/steamapps/common/Jedi Academy/GameData"
}
}
]
}