Merge pull request #291 from jonassorgenfrei/master

Adding dlls to debugger path for visual Studio
This commit is contained in:
Joey de Vries
2022-03-20 20:32:07 +01:00
committed by GitHub
3 changed files with 15 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
cmake_minimum_required (VERSION 3.0)
cmake_policy(VERSION 3.0)
project (LearnOpenGL)
project(LearnOpenGL)
set(CMAKE_CXX_STANDARD 17) # this does nothing for MSVC, use target_compile_options below
set(CMAKE_CXX_STANDARD_REQUIRED ON)

View File

@@ -4,7 +4,6 @@ Contains code samples for all chapters of Learn OpenGL and [https://learnopengl.
## Windows building
All relevant libraries are found in /libs and all DLLs found in /dlls (pre-)compiled for Windows.
The CMake script knows where to find the libraries so just run CMake script and generate project of choice.
Note that you still have to manually copy the required .DLL files from the /dlls folder to your binary folder for the binaries to run.
Keep in mind the supplied libraries were generated with a specific compiler version which may or may not work on your system (generating a large batch of link errors). In that case it's advised to build the libraries yourself from the source.

View File

@@ -3,10 +3,24 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<LocalDebuggerWorkingDirectory>$(OutDir)</LocalDebuggerWorkingDirectory>
<LocalDebuggerEnvironment>PATH=@CMAKE_SOURCE_DIR@/dlls;%PATH%</LocalDebuggerEnvironment>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<LocalDebuggerEnvironment>PATH=@CMAKE_SOURCE_DIR@/dlls;%PATH%</LocalDebuggerEnvironment>
<LocalDebuggerWorkingDirectory>$(OutDir)</LocalDebuggerWorkingDirectory>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<LocalDebuggerWorkingDirectory>$(OutDir)</LocalDebuggerWorkingDirectory>
<LocalDebuggerEnvironment>PATH=@CMAKE_SOURCE_DIR@/dlls;%PATH%</LocalDebuggerEnvironment>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<LocalDebuggerEnvironment>PATH=@CMAKE_SOURCE_DIR@/dlls;%PATH%</LocalDebuggerEnvironment>
<LocalDebuggerWorkingDirectory>$(OutDir)</LocalDebuggerWorkingDirectory>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>