Out-of-source builds without environment variables.

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.
This commit is contained in:
Marin Nilsson
2015-08-04 19:41:08 +02:00
parent 83497513eb
commit 1d2b1dae19
3 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1 @@
const char * logl_root = "${CMAKE_SOURCE_DIR}";