-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79d18d3
commit 257e268
Showing
27 changed files
with
1,574 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${command:cmake.launchTargetPath}", | ||
"args": [], | ||
"stopAtEntry": false, | ||
"cwd": "${command:cmake.launchTargetDirectory}/..", | ||
"environment": [], | ||
"linux": { | ||
"type": "lldb" | ||
}, | ||
"windows": { | ||
"type": "cppvsdbg", | ||
"console": "externalTerminal" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"files.associations": { | ||
"xstring": "cpp", | ||
"any": "cpp", | ||
"atomic": "cpp", | ||
"charconv": "cpp", | ||
"deque": "cpp", | ||
"list": "cpp", | ||
"vector": "cpp", | ||
"xhash": "cpp", | ||
"forward_list": "cpp", | ||
"fstream": "cpp", | ||
"functional": "cpp", | ||
"ios": "cpp", | ||
"locale": "cpp", | ||
"memory": "cpp", | ||
"optional": "cpp", | ||
"regex": "cpp", | ||
"sstream": "cpp", | ||
"streambuf": "cpp", | ||
"variant": "cpp", | ||
"xiosbase": "cpp", | ||
"xlocale": "cpp", | ||
"xlocbuf": "cpp", | ||
"xlocmes": "cpp", | ||
"xlocmon": "cpp", | ||
"xlocnum": "cpp", | ||
"xloctime": "cpp", | ||
"xmemory": "cpp", | ||
"algorithm": "cpp", | ||
"cmath": "cpp", | ||
"array": "cpp", | ||
"bit": "cpp", | ||
"bitset": "cpp", | ||
"cctype": "cpp", | ||
"chrono": "cpp", | ||
"clocale": "cpp", | ||
"codecvt": "cpp", | ||
"compare": "cpp", | ||
"complex": "cpp", | ||
"concepts": "cpp", | ||
"condition_variable": "cpp", | ||
"cstdarg": "cpp", | ||
"cstddef": "cpp", | ||
"cstdint": "cpp", | ||
"cstdio": "cpp", | ||
"cstdlib": "cpp", | ||
"cstring": "cpp", | ||
"ctime": "cpp", | ||
"cwchar": "cpp", | ||
"exception": "cpp", | ||
"map": "cpp", | ||
"set": "cpp", | ||
"string": "cpp", | ||
"unordered_map": "cpp", | ||
"unordered_set": "cpp", | ||
"filesystem": "cpp", | ||
"format": "cpp", | ||
"initializer_list": "cpp", | ||
"iomanip": "cpp", | ||
"iosfwd": "cpp", | ||
"iostream": "cpp", | ||
"istream": "cpp", | ||
"iterator": "cpp", | ||
"limits": "cpp", | ||
"mutex": "cpp", | ||
"new": "cpp", | ||
"numeric": "cpp", | ||
"ostream": "cpp", | ||
"queue": "cpp", | ||
"ranges": "cpp", | ||
"ratio": "cpp", | ||
"shared_mutex": "cpp", | ||
"span": "cpp", | ||
"stack": "cpp", | ||
"stdexcept": "cpp", | ||
"stop_token": "cpp", | ||
"system_error": "cpp", | ||
"thread": "cpp", | ||
"tuple": "cpp", | ||
"type_traits": "cpp", | ||
"typeindex": "cpp", | ||
"typeinfo": "cpp", | ||
"utility": "cpp", | ||
"valarray": "cpp", | ||
"xfacet": "cpp", | ||
"xlocinfo": "cpp", | ||
"xstddef": "cpp", | ||
"xtr1common": "cpp", | ||
"xtree": "cpp", | ||
"xutility": "cpp" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"version": 3, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 21, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "defaults", | ||
"hidden": true, | ||
"binaryDir": "${sourceDir}/out/${presetName}", | ||
"generator": "Ninja Multi-Config", | ||
"cacheVariables": { | ||
"avk_toolkit_BuildExamples" : true, | ||
"gvk_CreateDependencySymlinks": false, | ||
"CMAKE_EXPORT_COMPILE_COMMANDS" : true | ||
} | ||
}, | ||
{ | ||
"name": "defaults-windows", | ||
"hidden": true, | ||
"inherits": [ | ||
"defaults" | ||
], | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Windows" | ||
}, | ||
"cacheVariables": { | ||
} | ||
}, | ||
{ | ||
"name": "clang-x86_64-windows-msvc", | ||
"displayName": "Clang x86_64 Windows (MSVC ABI)", | ||
"inherits": [ | ||
"defaults-windows" | ||
], | ||
"toolchainFile": "${sourceDir}/cmake/toolchains/clang-x86_64-windows-msvc.cmake" | ||
}, | ||
{ | ||
"name": "cl-x86_64-windows-msvc", | ||
"displayName": "CL.exe x86_64 Windows (MSVC ABI)", | ||
"inherits": [ | ||
"defaults-windows" | ||
|
||
], | ||
"toolchainFile": "${sourceDir}/cmake/toolchains/cl-x86_64-windows-msvc.cmake" | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "clang-x86_64-windows-msvc-debug", | ||
"displayName": "Clang x86_64 Windows (MSVC ABI) Debug", | ||
"configurePreset": "clang-x86_64-windows-msvc", | ||
"configuration": "Debug" | ||
}, | ||
{ | ||
"name": "clang-x86_64-windows-msvc-relwithdebinfo", | ||
"displayName": "Clang x86_64 Windows (MSVC ABI) RelWithDebInfo", | ||
"configurePreset": "clang-x86_64-windows-msvc", | ||
"configuration": "RelWithDebInfo" | ||
}, | ||
{ | ||
"name": "clang-x86_64-windows-msvc-release", | ||
"displayName": "Clang x86_64 Windows (MSVC ABI) Release", | ||
"configurePreset": "clang-x86_64-windows-msvc", | ||
"configuration": "Release" | ||
}, | ||
{ | ||
"name": "cl-x86_64-windows-msvc-debug", | ||
"displayName": "CL.exe x86_64 Windows (MSVC ABI) Debug", | ||
"configurePreset": "cl-x86_64-windows-msvc", | ||
"configuration": "Debug" | ||
}, | ||
{ | ||
"name": "cl-x86_64-windows-msvc-relwithdebinfo", | ||
"displayName": "CL.exe x86_64 Windows (MSVC ABI) RelWithDebInfo", | ||
"configurePreset": "cl-x86_64-windows-msvc", | ||
"configuration": "RelWithDebInfo" | ||
}, | ||
{ | ||
"name": "cl-x86_64-windows-msvc-release", | ||
"displayName": "CL.exe x86_64 Windows (MSVC ABI) Release", | ||
"configurePreset": "cl-x86_64-windows-msvc", | ||
"configuration": "Release" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Don't set the MSVC compiler.. This works when opening the folder in Visual Studio | ||
include(${CMAKE_CURRENT_LIST_DIR}/vcvars.cmake) | ||
|
||
find_program(CMAKE_C_COMPILER cl REQUIRED HINTS ${MSVC_ENV_Path}) | ||
find_program(CMAKE_CXX_COMPILER cl REQUIRED HINTS ${MSVC_ENV_Path}) | ||
find_program(CMAKE_MT mt REQUIRED HINTS ${MSVC_ENV_Path}) | ||
find_program(CMAKE_RC_COMPILER rc REQUIRED HINTS ${MSVC_ENV_Path}) | ||
|
||
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT MSVC) | ||
set(CMAKE_C_COMPILER_FRONTEND_VARIANT MSVC) | ||
|
||
list(APPEND CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${MSVC_ENV_INCLUDE}) | ||
list(REMOVE_DUPLICATES CMAKE_C_STANDARD_INCLUDE_DIRECTORIES) | ||
set(CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_C_STANDARD_INCLUDE_DIRECTORIES} CACHE STRING "") | ||
|
||
list(APPEND CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${MSVC_ENV_INCLUDE}) | ||
list(REMOVE_DUPLICATES CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES) | ||
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES} CACHE STRING "") | ||
|
||
list(APPEND CMAKE_RC_STANDARD_INCLUDE_DIRECTORIES ${MSVC_ENV_INCLUDE}) | ||
list(REMOVE_DUPLICATES CMAKE_RC_STANDARD_INCLUDE_DIRECTORIES) | ||
set(CMAKE_RC_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_RC_STANDARD_INCLUDE_DIRECTORIES} CACHE STRING "") | ||
|
||
foreach(libpath ${MSVC_ENV_LIBPATH} ${MSVC_ENV_LIB}) | ||
set(CMAKE_SHARED_LINKER_FLAGS_INIT "${CMAKE_SHARED_LINKER_FLAGS_INIT} \"/LIBPATH:${libpath}\"") | ||
set(CMAKE_MODULE_LINKER_FLAGS_INIT "${CMAKE_MODULE_LINKER_FLAGS_INIT} \"/LIBPATH:${libpath}\"") | ||
set(CMAKE_EXE_LINKER_FLAGS_INIT "${CMAKE_EXE_LINKER_FLAGS_INIT} \"/LIBPATH:${libpath}\"") | ||
endforeach() | ||
|
||
list(APPEND LINK_DIRECTORIES $ENV{LIB} $ENV{LIBPATH}) | ||
list(REMOVE_DUPLICATES LINK_DIRECTORIES) | ||
set(LINK_DIRECTORIES ${LINK_DIRECTORIES} CACHE STRING "") | ||
link_directories(BEFORE ${LINK_DIRECTORIES}) | ||
|
||
list(APPEND CMAKE_TRY_COMPILE_PLATFORM_VARIABLES | ||
MSVC_ENV_INCLUDE | ||
MSVC_ENV_LIBPATH | ||
MSVC_ENV_VAR_NAMES | ||
MSVC_ENV_Path | ||
MSVC_ENV_LIB | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR x86_64) | ||
|
||
set(CMAKE_C_COMPILER_ID Clang) | ||
set(CMAKE_CXX_COMPILER_ID Clang) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
set(CMAKE_SYSTEM_NAME Windows) | ||
set(CMAKE_SYSTEM_PROCESSOR x86_64) | ||
|
||
set(CMAKE_C_COMPILER_ID Clang) | ||
set(CMAKE_CXX_COMPILER_ID Clang) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR x86_64) | ||
|
||
set(CMAKE_C_COMPILER_ID GNU) | ||
set(CMAKE_CXX_COMPILER_ID GNU) |
Oops, something went wrong.