- Create conanfile.txt
query the required libs: https://conan.io/center/
[requires]
glfw/3.3.2
glad/0.1.34
[generators]
cmake
-
Create a build directory:
$ mkdir build && cd build
-
Install dependencies (glfw -> glad -> opengl):
$ conan install ..
-
Configure the CMake project (Using MSVC 16 in this example):
$ cmake .. -G "Visual Studio 16 2019"
-
Build it:
$ cmake --build . --config Release
-
Run the application:
$ .\bin\learnopengl01.exe