Skip to content
Snippets Groups Projects
CMakePresets.json 3.67 KiB
Newer Older
peters's avatar
peters committed
    "version": 2,
peters's avatar
peters committed
    "cmakeMinimumRequired": {
        "major": 3,
peters's avatar
peters committed
        "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_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_msvc",
            "inherits": [
                "default_msvc",
                "default_cpu"
            ],
            "displayName": "cpu msvc configuration"
        },
        {
            "name": "gpu_make",
            "inherits": [
                "default_make",
                "default_gpu"
            ],
            "displayName": "gpu 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_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_msvc",
            "inherits": [
                "default_msvc",
                "default_gpu_numerical_tests"
            ],
            "displayName": "gpu numerical tests msvc configuration"
        }
    ]