CMakePresets.json 1.81 KB
Newer Older
Stephen's avatar
Stephen committed
1
2
3
4
5
6
7
8
9
{
    "version": 1,
    "cmakeMinimumRequired": {
        "major": 3,
        "minor": 19,
        "patch": 0
    },
    "configurePresets": [
        {
10
11
            "name": "osx",
            "displayName": "osx",
Stephen's avatar
Stephen committed
12
13
14
15
16
17
18
            "description": "Default build options for an OSX conda build",
            "generator": "Ninja",
            "binaryDir": "${sourceDir}/build",
            "cacheVariables": {
                "CMAKE_FIND_FRAMEWORK": "LAST",
                "CMAKE_PREFIX_PATH": "$env{CONDA_PREFIX}",
                "USE_PYTHON_DYNAMIC_LIB": "OFF",
19
20
                "Qt5_DIR": "$env{CONDA_PREFIX}/lib/cmake/qt5",
                "HDF5_ROOT": "$env{CONDA_PREFIX}",
Samuel Jones's avatar
Samuel Jones committed
21
                "OpenSSL_ROOT": "$env{CONDA_PREFIX}",
Stephen's avatar
Stephen committed
22
                "CONDA_BUILD": true,
Samuel Jones's avatar
Samuel Jones committed
23
                "CMAKE_BUILD_TYPE": "Debug"
Stephen's avatar
Stephen committed
24
            }
25
26
27
28
29
30
31
32
33
34
        },
        {
            "name": "win",
            "displayName": "win",
            "description": "Default build options for a windows conda build",
            "binaryDir": "${sourceDir}/build",
            "generator": "Visual Studio 16 2019",
            "cacheVariables": {
                "CMAKE_PREFIX_PATH": "$env{CONDA_PREFIX}",
                "CONDA_BUILD": true,
Stephen's avatar
Stephen committed
35
                "HDF5_ROOT": "$env{CONDA_PREFIX}/Library"
Samuel Jones's avatar
Samuel Jones committed
36
37
38
39
40
41
42
43
44
45
            }
        },
        {
            "name": "linux",
            "displayName": "linux",
            "description": "Default build options for a linux conda build",
            "binaryDir": "${sourceDir}/build",
            "generator": "Ninja",
            "cacheVariables": {
                "CMAKE_PREFIX_PATH": "$env{CONDA_PREFIX}",
46
                "CONDA_BUILD": true,
Samuel Jones's avatar
Samuel Jones committed
47
48
49
                "CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH": "FALSE",
                "CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH": "FALSE",
                "CMAKE_BUILD_TYPE": "Debug"
50
            }
Stephen's avatar
Stephen committed
51
52
        }
    ]
Gigg, Martyn Anthony's avatar
Gigg, Martyn Anthony committed
53
}