mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:56:54 +02:00
optionally do not reference OPENGL_INCLUDE_DIR for win
This commit is contained in:
parent
bb3a8677be
commit
e16a325006
2 changed files with 10 additions and 2 deletions
|
@ -231,7 +231,11 @@ if (APPLE)
|
||||||
else (APPLE)
|
else (APPLE)
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
find_package(GLUT REQUIRED)
|
find_package(GLUT REQUIRED)
|
||||||
include_directories(${GLUT_INCLUDE_DIR} "${OPENGL_INCLUDE_DIR}")
|
|
||||||
|
if (OPENGL_INCLUDE_DIR)
|
||||||
|
include_directories("${GLUT_INCLUDE_DIR}" "${OPENGL_INCLUDE_DIR}")
|
||||||
|
endif (OPENGL_INCLUDE_DIR)
|
||||||
|
|
||||||
target_link_libraries(${TARGET_NAME} "${OPENGL_LIBRARY}")
|
target_link_libraries(${TARGET_NAME} "${OPENGL_LIBRARY}")
|
||||||
endif (APPLE)
|
endif (APPLE)
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,11 @@ if (APPLE)
|
||||||
else (APPLE)
|
else (APPLE)
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
find_package(GLUT REQUIRED)
|
find_package(GLUT REQUIRED)
|
||||||
include_directories("${GLUT_INCLUDE_DIR}" "${OPENGL_INCLUDE_DIR}")
|
|
||||||
|
if (OPENGL_INCLUDE_DIR)
|
||||||
|
include_directories("${GLUT_INCLUDE_DIR}" "${OPENGL_INCLUDE_DIR}")
|
||||||
|
endif (OPENGL_INCLUDE_DIR)
|
||||||
|
|
||||||
target_link_libraries(${TARGET_NAME} "${OPENGL_LIBRARY}")
|
target_link_libraries(${TARGET_NAME} "${OPENGL_LIBRARY}")
|
||||||
endif (APPLE)
|
endif (APPLE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue