-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakePresets.json
More file actions
executable file
·83 lines (83 loc) · 2.59 KB
/
Copy pathCMakePresets.json
File metadata and controls
executable file
·83 lines (83 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"version": 8,
"configurePresets": [
{
"name": "default-preset",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/build/${presetName}/install",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_OVERLAY_PORTS": "${sourceDir}/ports",
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/triplets",
"X_VCPKG_APPLOCAL_DEPS_INSTALL": true
}
},
{
"name": "default-linux",
"inherits": "default-preset",
"environment": {
"VCPKG_KEEP_ENV_VARS": "Qt6_DIR;QT_DIR;TBB_DIR;CUDACXX;Thrust_DIR;LD_LIBRARY_PATH"
}
},
{
"name": "linux-release",
"inherits": "default-linux",
"displayName": "Pointcaster Release build for Linux x64",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"VCPKG_TARGET_TRIPLET": "x64-linux-custom-release",
"CMAKE_INSTALL_PREFIX": "/usr",
"CPACK_APPIMAGE_TOOL_EXECUTABLE": "/opt/bin/appimagetool/squashfs-root/AppRun",
"CMAKE_THREAD_LIBS_INIT": "-lpthread",
"CMAKE_CXX_FLAGS_INIT": "-O3 -march=x86-64-v3 -ffast-math"
}
},
{
"name": "linux-debug",
"inherits": "default-linux",
"displayName": "Pointcaster Debug build for Linux x64",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"VCPKG_TARGET_TRIPLET": "x64-linux-custom"
}
},
{
"name": "windows-default",
"inherits": "default-preset",
"environment": {
"VCPKG_KEEP_ENV_VARS": "Qt6_DIR;QT_DIR;TBB_DIR;CUDAToolkit_ROOT;CUDACXX;Thrust_DIR"
}
},
{
"name": "windows-release",
"inherits": "windows-default",
"displayName": "Pointcaster Release build for Windows x64",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"VCPKG_TARGET_TRIPLET": "x64-windows-static-md-custom-release",
"VCPKG_INSTALLED_DIR": "C:/vcpkg-config/vcpkg_installed",
"VCPKG_MANIFEST_INSTALL": "OFF",
"CMAKE_CXX_FLAGS_INIT": "/O2 /arch:AVX2 /fp:fast",
"CMAKE_EXE_LINKER_FLAGS_INIT": "/LTCG",
"CMAKE_SHARED_LINKER_FLAGS_INIT": "/LTCG",
"CMAKE_STATIC_LINKER_FLAGS_INIT": "/LTCG"
}
},
{
"name": "windows-debug",
"inherits": "windows-default",
"displayName": "Pointcaster Debug build for Windows x64",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"VCPKG_TARGET_TRIPLET": "x64-windows-static-md-custom",
"CMAKE_PDB_OUTPUT_DIRECTORY": "${sourceDir}/build/${presetName}",
"CMAKE_MSVC_DEBUG_INFORMATION_FORMAT": "ProgramDatabase"
}
}
]
}