diff --git a/CMakeLists.txt b/CMakeLists.txt index 97d899d..38aea7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/README.md b/README.md index c7ee52a..183ca4e 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/configuration/visualstudio.vcxproj.user.in b/configuration/visualstudio.vcxproj.user.in index 46ba5d6..6d01597 100644 --- a/configuration/visualstudio.vcxproj.user.in +++ b/configuration/visualstudio.vcxproj.user.in @@ -3,10 +3,24 @@ $(TargetPath) $(OutDir) + PATH=@CMAKE_SOURCE_DIR@/dlls;%PATH% WindowsLocalDebugger $(TargetPath) + PATH=@CMAKE_SOURCE_DIR@/dlls;%PATH% + $(OutDir) + WindowsLocalDebugger + + + $(TargetPath) + $(OutDir) + PATH=@CMAKE_SOURCE_DIR@/dlls;%PATH% + WindowsLocalDebugger + + + $(TargetPath) + PATH=@CMAKE_SOURCE_DIR@/dlls;%PATH% $(OutDir) WindowsLocalDebugger