Adding build cmake preset
This commit is contained in:
+77
-55
@@ -1,58 +1,80 @@
|
|||||||
{
|
{
|
||||||
"version": 3,
|
"version": 3,
|
||||||
"cmakeMinimumRequired": {
|
"cmakeMinimumRequired": {
|
||||||
"major": 3,
|
"major": 3,
|
||||||
"minor": 19,
|
"minor": 19,
|
||||||
"patch": 0
|
"patch": 0
|
||||||
|
},
|
||||||
|
"configurePresets": [
|
||||||
|
{
|
||||||
|
"name": "release",
|
||||||
|
"displayName": "Release (no ASan)",
|
||||||
|
"description": "Release build without sanitizers",
|
||||||
|
"binaryDir": "${sourceDir}/build",
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
||||||
|
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"configurePresets": [
|
{
|
||||||
{
|
"name": "release-asan",
|
||||||
"name": "release",
|
"displayName": "Release (ASan)",
|
||||||
"displayName": "Release (no ASan)",
|
"description": "Release build with Address Sanitizer",
|
||||||
"description": "Release build without sanitizers",
|
"binaryDir": "${sourceDir}/build",
|
||||||
"binaryDir": "${sourceDir}/build",
|
"cacheVariables": {
|
||||||
"cacheVariables": {
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
||||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
"CMAKE_CXX_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
||||||
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
"CMAKE_C_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
||||||
}
|
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address",
|
||||||
},
|
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address",
|
||||||
{
|
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
||||||
"name": "release-asan",
|
}
|
||||||
"displayName": "Release (ASan)",
|
},
|
||||||
"description": "Release build with Address Sanitizer",
|
{
|
||||||
"binaryDir": "${sourceDir}/build",
|
"name": "debug",
|
||||||
"cacheVariables": {
|
"displayName": "Debug (no ASan)",
|
||||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
"description": "Debug build without sanitizers",
|
||||||
"CMAKE_CXX_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
"binaryDir": "${sourceDir}/build",
|
||||||
"CMAKE_C_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
"cacheVariables": {
|
||||||
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address",
|
"CMAKE_BUILD_TYPE": "Debug",
|
||||||
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address",
|
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
||||||
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
}
|
||||||
}
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "debug-asan",
|
||||||
"name": "debug",
|
"displayName": "Debug (ASan)",
|
||||||
"displayName": "Debug (no ASan)",
|
"description": "Debug build with Address Sanitizer",
|
||||||
"description": "Debug build without sanitizers",
|
"binaryDir": "${sourceDir}/build",
|
||||||
"binaryDir": "${sourceDir}/build",
|
"cacheVariables": {
|
||||||
"cacheVariables": {
|
"CMAKE_BUILD_TYPE": "Debug",
|
||||||
"CMAKE_BUILD_TYPE": "Debug",
|
"CMAKE_CXX_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
||||||
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
"CMAKE_C_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
||||||
}
|
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address",
|
||||||
},
|
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address",
|
||||||
{
|
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
||||||
"name": "debug-asan",
|
}
|
||||||
"displayName": "Debug (ASan)",
|
}
|
||||||
"description": "Debug build with Address Sanitizer",
|
],
|
||||||
"binaryDir": "${sourceDir}/build",
|
"buildPresets": [
|
||||||
"cacheVariables": {
|
{
|
||||||
"CMAKE_BUILD_TYPE": "Debug",
|
"name": "release",
|
||||||
"CMAKE_CXX_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
"displayName": "Release (no ASan)",
|
||||||
"CMAKE_C_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
"configurePreset": "release"
|
||||||
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address",
|
},
|
||||||
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address",
|
{
|
||||||
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
"name": "release-asan",
|
||||||
}
|
"displayName": "Release (ASan)",
|
||||||
}
|
"configurePreset": "release-asan"
|
||||||
]
|
},
|
||||||
|
{
|
||||||
|
"name": "debug",
|
||||||
|
"displayName": "Debug (no ASan)",
|
||||||
|
"configurePreset": "debug"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "debug-asan",
|
||||||
|
"displayName": "Debug (ASan)",
|
||||||
|
"configurePreset": "debug-asan"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "CRC.h"
|
#include "CRC.h"
|
||||||
#include "Enums.h"
|
|
||||||
#include "Resources.h"
|
#include "Resources.h"
|
||||||
#include "VertexData.h"
|
#include "VertexData.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user