mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
Merge pull request #291 from jonassorgenfrei/master
Adding dlls to debugger path for visual Studio
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user