首次提交 基础架构完成
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
include_guard(GLOBAL)
|
||||
#set(base_dir "C:/Program Files/Microsoft Visual Studio/18/Enterprise/VC/Tools/MSVC/14.50.35717/bin/Hostx64/x64")
|
||||
#set(CMAKE_C_COMPILER "${base_dir}/cl.bat" CACHE FILEPATH "")
|
||||
#set(CMAKE_CXX_COMPILER "{${base_dir}}/cl.bat" CACHE FILEPATH "")
|
||||
#set(CMAKE_MAKE_PROGRAM "C:/Program Files/Microsoft Visual Studio/18/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" CACHE FILEPATH "")
|
||||
function(_append_msvc_init_options variable)
|
||||
set(value "${${variable}}")
|
||||
separate_arguments(existing_options WINDOWS_COMMAND "${value}")
|
||||
foreach (option IN LISTS ARGN)
|
||||
list(FIND existing_options "${option}" option_index)
|
||||
if (option_index EQUAL -1)
|
||||
list(APPEND existing_options "${option}")
|
||||
endif ()
|
||||
endforeach ()
|
||||
list(JOIN existing_options " " value)
|
||||
set(${variable} "${value}" PARENT_SCOPE)
|
||||
endfunction()
|
||||
_append_msvc_init_options(
|
||||
CMAKE_CXX_FLAGS_INIT
|
||||
/wd4819
|
||||
/utf-8
|
||||
/Zc:preprocessor
|
||||
/DNOMINMAX
|
||||
/D_USE_MATH_DEFINES
|
||||
/EHsc
|
||||
/bigobj
|
||||
/DWIN32_LEAN_AND_MEAN
|
||||
)
|
||||
_append_msvc_init_options(
|
||||
CMAKE_EXE_LINKER_FLAGS_RELEASE_INIT
|
||||
/PROFILE
|
||||
)
|
||||
_append_msvc_init_options(
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELEASE_INIT
|
||||
/PROFILE
|
||||
)
|
||||
_append_msvc_init_options(
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELEASE_INIT
|
||||
/PROFILE
|
||||
)
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"version": 10,
|
||||
"cmakeMinimumRequired": {
|
||||
"major": 3,
|
||||
"minor": 21,
|
||||
"patch": 0
|
||||
},
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "vs2019",
|
||||
"hidden": true,
|
||||
"graphviz": "${sourceDir}/../build/${presetName}/graphviz/yc.dot",
|
||||
"generator": "Ninja",
|
||||
"cacheVariables": {
|
||||
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/toolchain/vs2019.cmake"
|
||||
},
|
||||
"vendor": {
|
||||
"jetbrains.com/clion": {
|
||||
"toolchain": "vs2019"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "vs2019_Debug",
|
||||
"inherits": "vs2019",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "vs2019_Release",
|
||||
"inherits": "vs2019",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Release"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
set(dir "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64")
|
||||
|
||||
set(CMAKE_CXX_COMPILER "${dir}/cl.bat")
|
||||
set(CMAKE_C_COMPILER "${dir}/cl.bat")
|
||||
set(CMAKE_LINKER "${dir}/link.bat")
|
||||
|
||||
#set(CMAKE_CXX_COMPILER "${dir}/cl.exe")
|
||||
#set(CMAKE_C_COMPILER "${dir}/cl.exe")
|
||||
#set(CMAKE_LINKER "${dir}/link.exe")
|
||||
|
||||
# [2/2] C:\Windows\system32\cmd.exe /C "cd . && "C:\Program Files\JetBrains\CLion 2025.3.4\bin\cmake\win\x64\bin\cmake.exe" -E vs_link_exe --msvc-ver=1944 --intdir=CMakeFiles\radio.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~1\2022\ENTERP~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\LINK_2~1.BAT /nologo @CMakeFiles\radio.rsp /out:radio.exe /implib:radio.lib /pdb:radio.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console && cd ."
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"version": 10,
|
||||
"cmakeMinimumRequired": {
|
||||
"major": 3,
|
||||
"minor": 21,
|
||||
"patch": 0
|
||||
},
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "vs2022",
|
||||
"hidden": true,
|
||||
"graphviz": "${sourceDir}/../build/${presetName}/graphviz/yc.dot",
|
||||
"generator": "Ninja",
|
||||
"cacheVariables": {
|
||||
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/toolchain/vs2022.cmake"
|
||||
},
|
||||
"vendor": {
|
||||
"jetbrains.com/clion": {
|
||||
"toolchain": "vs2022"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "vs2022_debug",
|
||||
"inherits": "vs2022",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "vs2022_release",
|
||||
"inherits": "vs2022",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Release"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user