Work on CMake for OpenGL example.

This commit is contained in:
David Williams 2008-06-08 18:49:04 +00:00
parent adff2177fd
commit 2374082542
2 changed files with 3 additions and 5 deletions

View File

@ -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\ #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 #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 #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") 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?! #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 #Build
ADD_EXECUTABLE(OpenGLExample ${SRC_FILES}) ADD_EXECUTABLE(OpenGLExample ${SRC_FILES})

View File

@ -87,5 +87,3 @@ INSTALL(TARGETS PolyVox
) )
INSTALL(FILES ${INC_FILES} DESTINATION include/PolyVox) INSTALL(FILES ${INC_FILES} DESTINATION include/PolyVox)
ADD_SUBDIRECTORY(examples/OpenGL)