fixed OpenGL
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
if (ENABLE_VIDEO)
|
||||
if (OPENGL_FOUND)
|
||||
# find external software
|
||||
find_package(OpenGL)
|
||||
|
||||
|
||||
# set includes
|
||||
include_directories (${GREMLIN_SOURCE_DIR}/libs/glfw/include)
|
||||
include_directories (${GREMLIN_SOURCE_DIR}/libs/spark/include)
|
||||
|
||||
SET(VIDEO_SOURCES Explosion oglfont Client)
|
||||
endif(ENABLE_VIDEO)
|
||||
endif(OPENGL_FOUND)
|
||||
|
||||
include_directories (${GREMLIN_SOURCE_DIR}/libs/enet/include)
|
||||
include_directories (${GREMLIN_SOURCE_DIR}/src)
|
||||
@ -55,7 +55,7 @@ target_link_libraries(gremlin_dedicated
|
||||
enet ${PLATFORM_LIBRARIES}
|
||||
)
|
||||
|
||||
if (ENABLE_VIDEO)
|
||||
if (OPENGL_FOUND)
|
||||
# set dependencies
|
||||
add_dependencies( gremlin
|
||||
glfw spark
|
||||
@ -72,4 +72,4 @@ if (ENABLE_VIDEO)
|
||||
target_link_libraries(gremlin
|
||||
glfw spark
|
||||
)
|
||||
endif(ENABLE_VIDEO)
|
||||
endif(OPENGL_FOUND)
|
||||
|
Reference in New Issue
Block a user