mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-11 21:02:14 +02:00
include GLUT and OpenGL dirs as system includes
This commit is contained in:
parent
20dd5d6e8d
commit
dbf8021ccd
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ elseif()
|
|||
)
|
||||
endif ()
|
||||
|
||||
if(GLUT_INCLUDE_DIR AND GLUT_glut_LIBRARY)
|
||||
if (GLUT_INCLUDE_DIR AND GLUT_glut_LIBRARY)
|
||||
# Is -lXi and -lXmu required on all platforms that have it?
|
||||
# If not, we need some way to figure out what platform we are on.
|
||||
set(GLUT_LIBRARIES ${GLUT_glut_LIBRARY} ${GLUT_Xmu_LIBRARY} ${GLUT_Xi_LIBRARY})
|
||||
|
|
|
@ -215,7 +215,7 @@ else (APPLE)
|
|||
find_package(OpenGL REQUIRED)
|
||||
find_package(GLUT REQUIRED)
|
||||
|
||||
include_directories("${GLUT_INCLUDE_DIR}" "${OPENGL_INCLUDE_DIR}")
|
||||
include_directories(SYSTEM "${GLUT_INCLUDE_DIR}" "${OPENGL_INCLUDE_DIR}")
|
||||
target_link_libraries(${TARGET_NAME} "${OPENGL_LIBRARY}" "${GLUT_LIBRARIES}")
|
||||
|
||||
# link target to external libraries
|
||||
|
|
Loading…
Reference in a new issue