diff --git a/examples/Basic/CMakeLists.txt b/examples/Basic/CMakeLists.txt index a17c1eeb..dbb4e9aa 100644 --- a/examples/Basic/CMakeLists.txt +++ b/examples/Basic/CMakeLists.txt @@ -50,7 +50,7 @@ SOURCE_GROUP("Headers" FILES ${INC_FILES}) FIND_PACKAGE(OpenGL REQUIRED) #Tell CMake the paths for OpenGL and for PolyVox (which is just relative to our current location) -INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR} ${PolyVoxCore_SOURCE_DIR}/include) +INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR} ${PolyVoxCore_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}) LINK_DIRECTORIES(${PolyVoxCore_BINARY_DIR}) #Build diff --git a/examples/Basic/glew/glxew.h b/examples/Basic/glew/glxew.h index 0b66bde3..dc467d33 100644 --- a/examples/Basic/glew/glxew.h +++ b/examples/Basic/glew/glxew.h @@ -97,7 +97,7 @@ #include #include #include -#include +#include #ifdef __cplusplus extern "C" { diff --git a/examples/OpenGL/CMakeLists.txt b/examples/OpenGL/CMakeLists.txt index 5b61f759..fb32fd12 100644 --- a/examples/OpenGL/CMakeLists.txt +++ b/examples/OpenGL/CMakeLists.txt @@ -56,7 +56,7 @@ SOURCE_GROUP("Headers" FILES ${INC_FILES}) FIND_PACKAGE(OpenGL REQUIRED) #Tell CMake the paths for OpenGL and for PolyVox (which is just relative to our current location) -INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR} ${PolyVoxCore_SOURCE_DIR}/include) +INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR} ${PolyVoxCore_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}) LINK_DIRECTORIES(${PolyVoxCore_BINARY_DIR}) #Build diff --git a/examples/OpenGL/glew/glxew.h b/examples/OpenGL/glew/glxew.h index 0b66bde3..dc467d33 100644 --- a/examples/OpenGL/glew/glxew.h +++ b/examples/OpenGL/glew/glxew.h @@ -97,7 +97,7 @@ #include #include #include -#include +#include #ifdef __cplusplus extern "C" { diff --git a/examples/Paging/CMakeLists.txt b/examples/Paging/CMakeLists.txt index 88fb5b6f..fb30c611 100644 --- a/examples/Paging/CMakeLists.txt +++ b/examples/Paging/CMakeLists.txt @@ -52,7 +52,7 @@ SOURCE_GROUP("Headers" FILES ${INC_FILES}) FIND_PACKAGE(OpenGL REQUIRED) #Tell CMake the paths for OpenGL and for PolyVox (which is just relative to our current location) -INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR} ${PolyVoxCore_SOURCE_DIR}/include) +INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR} ${PolyVoxCore_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}) LINK_DIRECTORIES(${PolyVoxCore_BINARY_DIR}) #Build diff --git a/examples/Paging/glew/glxew.h b/examples/Paging/glew/glxew.h index 0b66bde3..dc467d33 100644 --- a/examples/Paging/glew/glxew.h +++ b/examples/Paging/glew/glxew.h @@ -97,7 +97,7 @@ #include #include #include -#include +#include #ifdef __cplusplus extern "C" { diff --git a/examples/SmoothLOD/CMakeLists.txt b/examples/SmoothLOD/CMakeLists.txt index 86923a0a..2cf2644f 100644 --- a/examples/SmoothLOD/CMakeLists.txt +++ b/examples/SmoothLOD/CMakeLists.txt @@ -50,7 +50,7 @@ SOURCE_GROUP("Headers" FILES ${INC_FILES}) FIND_PACKAGE(OpenGL REQUIRED) #Tell CMake the paths for OpenGL and for PolyVox (which is just relative to our current location) -INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR} ${PolyVoxCore_SOURCE_DIR}/include) +INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR} ${PolyVoxCore_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}) LINK_DIRECTORIES(${PolyVoxCore_BINARY_DIR}) #Build diff --git a/examples/SmoothLOD/glew/glxew.h b/examples/SmoothLOD/glew/glxew.h index 0b66bde3..dc467d33 100644 --- a/examples/SmoothLOD/glew/glxew.h +++ b/examples/SmoothLOD/glew/glxew.h @@ -97,7 +97,7 @@ #include #include #include -#include +#include #ifdef __cplusplus extern "C" {