mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Fixed release build and automatic compiling of CPP Helper
This commit is contained in:
@@ -10,4 +10,10 @@ StartupObject = "GlitchyEngineHelper.Program"
|
|||||||
BuildCommandsOnCompile = "IfFilesChanged"
|
BuildCommandsOnCompile = "IfFilesChanged"
|
||||||
BuildCommandsOnRun = "IfFilesChanged"
|
BuildCommandsOnRun = "IfFilesChanged"
|
||||||
LibPaths = ["$(ProjectDir)/out/build/x64-debug/GlitchyEngineHelper.lib"]
|
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"]
|
||||||
|
|||||||
@@ -11,5 +11,4 @@ add_library (GlitchyEngineHelper "GlitchyEngineHelper.cpp" "GlitchyEngineHelper.
|
|||||||
include_directories("vendor/DirectXTK/Inc")
|
include_directories("vendor/DirectXTK/Inc")
|
||||||
|
|
||||||
# Use statically linked multithreaded MSVC runtime
|
# Use statically linked multithreaded MSVC runtime
|
||||||
set_property(TARGET GlitchyEngineHelper PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreadedDebug")
|
set_property(TARGET GlitchyEngineHelper PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
#$<$<CONFIG:Debug>:Debug>
|
|
||||||
|
|||||||
@@ -57,5 +57,15 @@
|
|||||||
"CMAKE_BUILD_TYPE": "Release"
|
"CMAKE_BUILD_TYPE": "Release"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"buildPresets": [
|
||||||
|
{
|
||||||
|
"name": "x64-debug",
|
||||||
|
"configurePreset": "x64-debug"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x64-release",
|
||||||
|
"configurePreset": "x64-release"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -4,6 +4,7 @@ for /f "usebackq tokens=*" %%i in (`vswhere.exe -latest -products * -requires Mi
|
|||||||
if exist "%%i\VC\Auxiliary\Build\vcvarsall.bat" (
|
if exist "%%i\VC\Auxiliary\Build\vcvarsall.bat" (
|
||||||
"%%i\VC\Auxiliary\Build\vcvarsall.bat" %1
|
"%%i\VC\Auxiliary\Build\vcvarsall.bat" %1
|
||||||
cd /D %2
|
cd /D %2
|
||||||
cmake --preset %3
|
cmake --preset=%3
|
||||||
|
cmake --build --preset=%3
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user