Skip to content
Snippets Groups Projects
CMakePresets.json 3.62 KiB
Newer Older
{
  "version": 1,
  "cmakeMinimumRequired": {
    "major": 3,
    "minor": 19,
    "patch": 0
  },
  "configurePresets": [
    {
      "name": "default",
      "hidden": true,
      "binaryDir": "${sourceDir}/build/",
      "cacheVariables": {
        "BUILD_VF_UNIT_TESTS": "ON"
      }
    },
    {
      "name": "default_make",
      "inherits": "default",
      "hidden": true,
      "generator": "Unix Makefiles"
    },
    {
      "name": "default_ccache_make",
      "inherits": "default_make",
      "hidden": true,
      "cacheVariables": {
        "CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
        "CMAKE_CUDA_COMPILER_LAUNCHER": "ccache",
        "CMAKE_C_COMPILER_LAUNCHER": "ccache"
      }
    },
    {
      "name": "default_msvc",
      "inherits": "default",
      "hidden": true,
      "generator": "Visual Studio 16 2019",
      "architecture": "x64"
    },
    {
      "name": "default_cpu",
      "hidden": true,
      "description": "CPU build of VirtualFluids",
      "cacheVariables": {
        "BUILD_VF_CPU": "ON",
        "BUILD_VF_DOUBLE_ACCURACY": "ON"
      }
    },
    {
      "name": "default_gpu",
      "hidden": true,
      "description": "GPU build of VirtualFluids",
      "cacheVariables": {
        "BUILD_VF_GPU": "ON",
        "BUILD_VF_DOUBLE_ACCURACY": "OFF"
      }
    },
    {
      "name": "default_gpu_numerical_tests",
      "inherits": ["default_gpu"],
      "hidden": true,
      "description": "GPU numerical tests of VirtualFluids",
      "cacheVariables": {
        "BUILD_VF_DOUBLE_ACCURACY": "ON",
        "BUILD_NUMERIC_TESTS": "ON"
      }
    },
    {
      "name": "default_all",
      "hidden": true,
      "description": "All build of VirtualFluids",
      "inherits": ["default_cpu", "default_gpu"],
      "cacheVariables": {
        "BUILD_VF_DOUBLE_ACCURACY": "ON"
      }
    },
    {
      "name": "cpu_make",
      "inherits": ["default_make", "default_cpu"],
      "displayName": "cpu make configuration"
    },
    {
      "name": "cpu_make_ccache",
      "inherits": ["default_ccache_make", "default_cpu"],
      "displayName": "cpu ccache make configuration"
    },
    {
      "name": "cpu_msvc",
      "inherits": ["default_msvc", "default_cpu"],
      "displayName": "cpu msvc configuration"
    },
    {
      "name": "gpu_make",
      "inherits": ["default_make", "default_gpu"],
      "displayName": "gpu make configuration"
    },
    {
      "name": "gpu_make_ccache",
      "inherits": ["default_ccache_make", "default_gpu"],
      "displayName": "gpu ccache make configuration"
    },
    {
      "name": "gpu_msvc",
      "inherits": ["default_msvc", "default_gpu"],
      "displayName": "gpu msvc configuration"
    },
    {
      "name": "all_make",
      "inherits": ["default_make", "default_all"],
      "displayName": "all make configuration"
    },
    {
      "name": "all_make_ccache",
      "inherits": ["default_ccache_make", "default_all"],
      "displayName": "all ccache make configuration"
    },
    {
      "name": "all_msvc",
      "inherits": ["default_msvc", "default_all"],
      "displayName": "all msvc configuration"
    },
    {
      "name": "gpu_numerical_tests_make",
      "inherits": ["default_make", "default_gpu_numerical_tests"],
      "displayName": "gpu numerical tests make configuration"
    },
    {
      "name": "gpu_numerical_tests_ccache_make",
      "inherits": ["default_ccache_make", "default_gpu_numerical_tests"],
      "displayName": "gpu numerical tests ccache make configuration"
    },
    {
      "name": "gpu_numerical_tests_msvc",
      "inherits": ["default_msvc", "default_gpu_numerical_tests"],
      "displayName": "gpu numerical tests msvc configuration"
    }
  ]
}