Work on CMake for OpenGL example.
This commit is contained in:
parent
adff2177fd
commit
2374082542
@ -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})
|
||||
|
@ -87,5 +87,3 @@ INSTALL(TARGETS PolyVox
|
||||
)
|
||||
|
||||
INSTALL(FILES ${INC_FILES} DESTINATION include/PolyVox)
|
||||
|
||||
ADD_SUBDIRECTORY(examples/OpenGL)
|
Loading…
x
Reference in New Issue
Block a user