Fixed release build and automatic compiling of CPP Helper

This commit is contained in:
Simon Lübeß
2022-05-04 18:34:56 +02:00
parent 9e23ac0fcf
commit 412d0ea965
4 changed files with 20 additions and 4 deletions
+7 -1
View File
@@ -10,4 +10,10 @@ StartupObject = "GlitchyEngineHelper.Program"
BuildCommandsOnCompile = "IfFilesChanged"
BuildCommandsOnRun = "IfFilesChanged"
LibPaths = ["$(ProjectDir)/out/build/x64-debug/GlitchyEngineHelper.lib"]
PostBuildCmds = ["$(ProjectDir)\\..\\bin\\vscmake.bat x64 $(ProjectDir) x64-debug"]
PreBuildCmds = ["$(ProjectDir)/../bin/vscmake.bat x64 $(ProjectDir) x64-debug"]
[Configs.Release.Win64]
BuildCommandsOnCompile = "IfFilesChanged"
BuildCommandsOnRun = "IfFilesChanged"
LibPaths = ["$(ProjectDir)/out/build/x64-release/GlitchyEngineHelper.lib"]
PreBuildCmds = ["$(ProjectDir)/../bin/vscmake.bat x64 $(ProjectDir) x64-release"]
+1 -2
View File
@@ -11,5 +11,4 @@ add_library (GlitchyEngineHelper "GlitchyEngineHelper.cpp" "GlitchyEngineHelper.
include_directories("vendor/DirectXTK/Inc")
# Use statically linked multithreaded MSVC runtime
set_property(TARGET GlitchyEngineHelper PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreadedDebug")
#$<$<CONFIG:Debug>:Debug>
set_property(TARGET GlitchyEngineHelper PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
+10
View File
@@ -57,5 +57,15 @@
"CMAKE_BUILD_TYPE": "Release"
}
}
],
"buildPresets": [
{
"name": "x64-debug",
"configurePreset": "x64-debug"
},
{
"name": "x64-release",
"configurePreset": "x64-release"
}
]
}
+2 -1
View File
@@ -4,6 +4,7 @@ for /f "usebackq tokens=*" %%i in (`vswhere.exe -latest -products * -requires Mi
if exist "%%i\VC\Auxiliary\Build\vcvarsall.bat" (
"%%i\VC\Auxiliary\Build\vcvarsall.bat" %1
cd /D %2
cmake --preset %3
cmake --preset=%3
cmake --build --preset=%3
)
)