A record for learning OpenGL follow https://learnopengl-cn.github.io/.
- I use vcpkg to install all required packages and set cmake flag:
-DCMAKE_TOOLCHAIN_FILE="....../vcpkg/current/scripts/buildsystems/vcpkg.cmake"- add
add_subdirectory()to root cmakefile to build any subdirectories,because there are some dependencies written in root cmakelist.txt. - If build in windows , please use administrator to build it.Because I use
file(CREATE_LINK ...)to link glsl and resource file to build directory.