mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-01 20:27:54 +08:00
Using CMake's configure_file command to generate a header file defining a C string containing the path to the source root directory; the directory where the resource folder is. Textures and models can now be found directly as long the user doesn't move stuff around. Shaders are still a problem.
1 line
47 B
C
1 line
47 B
C
const char * logl_root = "${CMAKE_SOURCE_DIR}"; |