Skip to content

Commit

Permalink
Add first CMakePresets.json
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed May 17, 2023
1 parent 7a92fa5 commit c153d22
Showing 1 changed file with 110 additions and 0 deletions.
110 changes: 110 additions & 0 deletions CMakeProjectPresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"buildPresets": [
{
"configurePreset": "conda-default-debug",
"name": "conda-default-debug"
},
{
"configurePreset": "conda-clang-debug",
"name": "conda-clang-debug"
}
],
"configurePresets": [
{
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_AR": "$env{AR}",
"CMAKE_INSTALL_LIBDIR": "lib",
"CMAKE_INSTALL_PREFIX": "$env{CONDA_PREFIX}",
"CMAKE_LINKER": "$env{LD}",
"CMAKE_PREFIX_PATH": "$env{CONDA_PREFIX}",
"CMAKE_RANLIB": "$env{RANLIB}",
"CMAKE_STRIP": "$env{STRIP}"
},
"description": "Base profile using conda libraries",
"displayName": "Conda Base",
"hidden": true,
"name": "conda-base"
},
{
"cacheVariables": {
"CMAKE_CXX_COMPILER": "$env{CXX}",
"CMAKE_CXX_COMPILER_AR": "$env{GCC_AR}",
"CMAKE_CXX_COMPILER_RANLIB": "$env{GCC_RANLIB}",
"CMAKE_CXX_FLAGS_DEBUG": "$env{DEBUG_CXXFLAGS}",
"CMAKE_CXX_FLAGS_RELEASE": "$env{CXXFLAGS}",
"CMAKE_C_COMPILER": "$env{CC}",
"CMAKE_C_COMPILER_AR": "$env{GCC_AR}",
"CMAKE_C_COMPILER_RANLIB": "$env{GCC_RANLIB}",
"CMAKE_C_FLAGS_DEBUG": "$env{DEBUG_CFLAGS}",
"CMAKE_C_FLAGS_RELEASE": "$env{CFLAGS}"
},
"description": "Base profile using conda libraries and environment variables",
"displayName": "Conda Default",
"hidden": true,
"inherits": [
"conda-base"
],
"name": "conda-default"
},
{
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_FLAGS": "-fcolor-diagnostics",
"CMAKE_C_COMPILER": "clang",
"CMAKE_LINKER": "lld"
},
"description": "Base profile using conda libraries and Clang",
"displayName": "Conda Clang",
"hidden": true,
"inherits": [
"conda-base"
],
"name": "conda-clang"
},
{
"cacheVariables": {
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
},
"description": "Base profile for tools",
"displayName": "Tool Base",
"generator": "Unix Makefiles",
"hidden": true,
"name": "tool-base",
"warnings": {
"dev": true,
"uninitialized": true,
"unusedCli": true
}
},
{
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-fdiagnostics-color=always"
},
"description": "A debug build using conda libraries and environment variables",
"displayName": "Conda Debug",
"inherits": [
"conda-default",
"tool-base"
],
"name": "conda-default-debug"
},
{
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-fcolor-diagnostics"
},
"description": "A debug build using conda libraries and clang compiler",
"displayName": "Conda Debug",
"inherits": [
"conda-clang",
"tool-base"
],
"name": "conda-clang-debug"
}
],
"version": 2
}

0 comments on commit c153d22

Please sign in to comment.