diff --git a/examples/OpenGL/CMakeLists.txt b/examples/OpenGL/CMakeLists.txt index 1cd244d4..1096889c 100644 --- a/examples/OpenGL/CMakeLists.txt +++ b/examples/OpenGL/CMakeLists.txt @@ -25,10 +25,10 @@ IF (WIN32) #This means glut.h and glut32.lib go in the 'include' and 'lib' folders within Microsoft Visual Studio 8\VC\PlatformSDK\ #Also, glut32.dll goes in C:\Windows\System. Using C:\Windows\System32 doesn't seem to work - #Tell CMake the paths for OpenGL and for PolyVox ()which is just relative to our current location - INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS} ${OPENGL_INCLUDE_DIR} "../../include") + #Tell CMake the paths for OpenGL and for PolyVox (which is just relative to our current location) + INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS} ${OPENGL_INCLUDE_DIR} "../../library/include") #No idea why we have to look three levels up for build and only two for include. They should be the same level?! - LINK_DIRECTORIES("../../../build") + LINK_DIRECTORIES("../../../build/library") #Build ADD_EXECUTABLE(OpenGLExample ${SRC_FILES}) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index 827b81d3..57b9cab9 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -87,5 +87,3 @@ INSTALL(TARGETS PolyVox ) INSTALL(FILES ${INC_FILES} DESTINATION include/PolyVox) - -ADD_SUBDIRECTORY(examples/OpenGL) \ No newline at end of file