2021-07-22 22:45:39 +02:00
|
|
|
{
|
|
|
|
"version": 2,
|
|
|
|
"cmakeMinimumRequired": {
|
|
|
|
"major": 3,
|
|
|
|
"minor": 20,
|
|
|
|
"patch": 0
|
|
|
|
},
|
|
|
|
"configurePresets": [
|
|
|
|
{
|
2021-08-25 16:41:57 +02:00
|
|
|
"name": "use-ninja",
|
|
|
|
"hidden": true,
|
2022-01-19 12:16:14 +01:00
|
|
|
"generator": "Ninja",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
|
|
|
|
}
|
2021-08-25 16:41:57 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "default-build-dir",
|
|
|
|
"hidden": true,
|
2022-01-19 12:16:14 +01:00
|
|
|
"binaryDir": "${sourceDir}/build/${presetName}"
|
2021-08-25 16:41:57 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "debug-build",
|
2021-07-22 22:45:39 +02:00
|
|
|
"hidden": true,
|
2021-08-25 16:41:57 +02:00
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Debug",
|
|
|
|
"USE_DEBUG_OUTPUT": "ON",
|
|
|
|
"USE_LOG": "ON",
|
|
|
|
"USE_LOG_SEVERITY": "0"
|
|
|
|
}
|
|
|
|
},
|
2022-01-19 12:16:14 +01:00
|
|
|
{
|
|
|
|
"name": "release-with-debug-build",
|
|
|
|
"hidden": true,
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
|
|
|
"USE_DEBUG_OUTPUT": "OFF",
|
|
|
|
"USE_LOG": "OFF"
|
|
|
|
}
|
|
|
|
},
|
2021-08-25 16:41:57 +02:00
|
|
|
{
|
|
|
|
"name": "release-build",
|
|
|
|
"hidden": true,
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Release",
|
|
|
|
"USE_DEBUG_OUTPUT": "OFF",
|
|
|
|
"USE_LOG": "OFF"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "use-clang",
|
|
|
|
"hidden": true,
|
|
|
|
"inherits": [
|
|
|
|
"default-build-dir",
|
|
|
|
"use-ninja"
|
|
|
|
],
|
2021-07-22 22:45:39 +02:00
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_C_COMPILER": "clang",
|
|
|
|
"CMAKE_CXX_COMPILER": "clang++",
|
2021-07-23 19:34:17 +02:00
|
|
|
"CMAKE_CXX_FLAGS": "-stdlib=libc++",
|
|
|
|
"CMAKE_EXE_LINKER_FLAGS": "-stdlib=libc++",
|
|
|
|
"CMAKE_SHARED_LINKER_FLAGS": "-stdlib=libc++"
|
2021-07-22 22:45:39 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2021-08-25 16:41:57 +02:00
|
|
|
"name": "use-gcc",
|
|
|
|
"hidden": true,
|
|
|
|
"inherits": [
|
|
|
|
"default-build-dir",
|
|
|
|
"use-ninja"
|
|
|
|
],
|
2021-07-22 22:45:39 +02:00
|
|
|
"cacheVariables": {
|
2021-08-25 16:41:57 +02:00
|
|
|
"CMAKE_C_COMPILER": "gcc",
|
|
|
|
"CMAKE_CXX_COMPILER": "g++"
|
2021-07-22 22:45:39 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2021-08-25 16:41:57 +02:00
|
|
|
"name": "use-msvc-cl",
|
|
|
|
"hidden": true,
|
|
|
|
"inherits": [
|
|
|
|
"default-build-dir",
|
|
|
|
"use-ninja"
|
|
|
|
],
|
2021-07-22 22:45:39 +02:00
|
|
|
"cacheVariables": {
|
2021-08-25 16:41:57 +02:00
|
|
|
"CMAKE_C_COMPILER": "cl",
|
|
|
|
"CMAKE_CXX_COMPILER": "cl"
|
2021-07-22 22:45:39 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2021-08-25 16:41:57 +02:00
|
|
|
"name": "use-msvc-clang-cl",
|
2021-07-22 22:45:39 +02:00
|
|
|
"hidden": true,
|
2021-08-25 16:41:57 +02:00
|
|
|
"inherits": [
|
|
|
|
"default-build-dir",
|
|
|
|
"use-ninja"
|
|
|
|
],
|
2021-07-22 22:45:39 +02:00
|
|
|
"cacheVariables": {
|
2021-08-25 16:41:57 +02:00
|
|
|
"CMAKE_C_COMPILER": "clang-cl",
|
|
|
|
"CMAKE_CXX_COMPILER": "clang-cl"
|
2021-07-22 22:45:39 +02:00
|
|
|
}
|
|
|
|
},
|
2021-08-25 16:41:57 +02:00
|
|
|
{
|
|
|
|
"name": "linux-clang-debug",
|
|
|
|
"displayName": "Linux clang debug",
|
|
|
|
"inherits": [
|
|
|
|
"use-clang",
|
|
|
|
"debug-build"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-clang-release",
|
|
|
|
"displayName": "Linux clang release",
|
|
|
|
"inherits": [
|
|
|
|
"use-clang",
|
|
|
|
"release-build"
|
|
|
|
]
|
|
|
|
},
|
2021-07-22 22:45:39 +02:00
|
|
|
{
|
|
|
|
"name": "linux-gcc-debug",
|
|
|
|
"displayName": "Linux gcc debug",
|
2021-08-25 16:41:57 +02:00
|
|
|
"inherits": [
|
|
|
|
"use-gcc",
|
|
|
|
"debug-build"
|
|
|
|
]
|
2021-07-22 22:45:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-gcc-release",
|
|
|
|
"displayName": "Linux gcc release",
|
2021-08-25 16:41:57 +02:00
|
|
|
"inherits": [
|
|
|
|
"use-gcc",
|
|
|
|
"release-build"
|
|
|
|
]
|
2021-07-22 22:45:39 +02:00
|
|
|
},
|
|
|
|
{
|
2021-08-25 16:41:57 +02:00
|
|
|
"name": "windows-arch-x64",
|
2021-07-22 22:54:22 +02:00
|
|
|
"hidden": true,
|
2021-07-22 22:45:39 +02:00
|
|
|
"architecture": {
|
|
|
|
"value": "x64",
|
|
|
|
"strategy": "external"
|
|
|
|
},
|
|
|
|
"toolset": {
|
|
|
|
"value": "host=x64",
|
|
|
|
"strategy": "external"
|
2021-08-25 16:41:57 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "windows-default",
|
|
|
|
"displayName": "Windows x64 Debug",
|
|
|
|
"hidden": true,
|
|
|
|
"inherits": [
|
|
|
|
"use-msvc-cl",
|
|
|
|
"windows-arch-x64"
|
|
|
|
],
|
2021-07-22 22:45:39 +02:00
|
|
|
"vendor": {
|
|
|
|
"microsoft.com/VisualStudioSettings/CMake/1.0": {
|
|
|
|
"hostOS": [
|
|
|
|
"Windows"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-07-22 22:54:22 +02:00
|
|
|
{
|
2021-11-15 10:39:40 +01:00
|
|
|
"name": "windows-debug",
|
2021-07-22 22:54:22 +02:00
|
|
|
"displayName": "Windows x64 Debug",
|
2021-08-25 16:41:57 +02:00
|
|
|
"inherits": [
|
|
|
|
"windows-default",
|
|
|
|
"debug-build"
|
|
|
|
]
|
2021-07-22 22:54:22 +02:00
|
|
|
},
|
2021-07-22 22:45:39 +02:00
|
|
|
{
|
2021-11-15 10:39:40 +01:00
|
|
|
"name": "windows-release",
|
2021-07-22 22:45:39 +02:00
|
|
|
"displayName": "Windows x64 Release",
|
2021-08-25 16:41:57 +02:00
|
|
|
"inherits": [
|
|
|
|
"windows-default",
|
|
|
|
"release-build"
|
|
|
|
]
|
2022-01-28 11:10:24 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "ci-options",
|
|
|
|
"hidden": true,
|
|
|
|
"cacheVariables": {
|
|
|
|
"BUILD_TESTING": "ON",
|
|
|
|
"BUILD_DEMO_VIEWER": "OFF"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "windows-ci",
|
|
|
|
"description": "used by the ci pipeline",
|
|
|
|
"inherits": [
|
|
|
|
"windows-release",
|
|
|
|
"ci-options"
|
|
|
|
],
|
|
|
|
"cacheVariables": {
|
|
|
|
"INSTALL_DEPENDENCIES": "ON",
|
2022-02-08 14:54:40 +01:00
|
|
|
"ADDITIONAL_LIBARIES_PATHS": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-windows/bin"
|
2022-01-28 11:10:24 +01:00
|
|
|
},
|
|
|
|
"environment": {
|
|
|
|
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-windows/share/proj4"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-ci",
|
|
|
|
"description": "used by the ci pipeline",
|
|
|
|
"inherits": [
|
|
|
|
"release-with-debug-build",
|
|
|
|
"use-gcc",
|
|
|
|
"ci-options"
|
|
|
|
],
|
|
|
|
"cacheVariables": {
|
2022-02-08 14:54:40 +01:00
|
|
|
"CMAKE_CXX_FLAGS": "--coverage"
|
2022-01-28 11:10:24 +01:00
|
|
|
},
|
|
|
|
"environment": {
|
|
|
|
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-linux/share/proj4"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "macos-ci",
|
|
|
|
"description": "used by the ci pipeline",
|
|
|
|
"inherits": [
|
|
|
|
"use-ninja",
|
|
|
|
"release-with-debug-build",
|
|
|
|
"default-build-dir",
|
|
|
|
"ci-options"
|
|
|
|
],
|
|
|
|
"cacheVariables": {
|
2022-02-08 14:54:40 +01:00
|
|
|
"CMAKE_CXX_FLAGS": "-fprofile-arcs -ftest-coverage"
|
2022-01-28 11:10:24 +01:00
|
|
|
},
|
|
|
|
"environment": {
|
|
|
|
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-osx/share/proj4"
|
|
|
|
}
|
2021-07-22 22:45:39 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"buildPresets": [
|
|
|
|
{
|
2021-11-15 10:39:40 +01:00
|
|
|
"name": "windows-debug",
|
|
|
|
"configurePreset": "windows-debug"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "windows-release",
|
|
|
|
"configurePreset": "windows-release"
|
2021-07-23 16:41:28 +02:00
|
|
|
},
|
|
|
|
{
|
2021-11-15 10:39:40 +01:00
|
|
|
"name": "linux-clang-debug",
|
2021-07-23 16:41:28 +02:00
|
|
|
"configurePreset": "linux-clang-debug"
|
2021-11-15 10:39:40 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-clang-release",
|
|
|
|
"configurePreset": "linux-clang-release"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-gcc-debug",
|
|
|
|
"configurePreset": "linux-gcc-debug"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-gcc-release",
|
|
|
|
"configurePreset": "linux-gcc-release"
|
2022-01-28 11:10:24 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "windows-ci",
|
|
|
|
"configurePreset": "windows-ci"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-ci",
|
|
|
|
"configurePreset": "linux-ci"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "macos-ci",
|
|
|
|
"configurePreset": "macos-ci"
|
2021-07-22 22:45:39 +02:00
|
|
|
}
|
2022-01-19 12:16:14 +01:00
|
|
|
],
|
|
|
|
"testPresets": [
|
|
|
|
{
|
|
|
|
"name": "test-default",
|
|
|
|
"hidden": true,
|
|
|
|
"output": {
|
|
|
|
"outputOnFailure": true
|
|
|
|
},
|
|
|
|
"execution": {
|
|
|
|
"noTestsAction": "error",
|
|
|
|
"stopOnFailure": false
|
|
|
|
}
|
2022-01-28 11:10:24 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "windows-ci",
|
|
|
|
"configurePreset": "windows-ci",
|
|
|
|
"inherits": [
|
|
|
|
"test-default"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "linux-ci",
|
|
|
|
"configurePreset": "linux-ci",
|
|
|
|
"inherits": [
|
|
|
|
"test-default"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "macos-ci",
|
|
|
|
"configurePreset": "macos-ci",
|
|
|
|
"inherits": [
|
|
|
|
"test-default"
|
|
|
|
]
|
2022-01-19 12:16:14 +01:00
|
|
|
}
|
2021-07-22 22:45:39 +02:00
|
|
|
]
|
|
|
|
}
|