mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
cleanup the FindPrioVR module and fix GLUT include
This commit is contained in:
parent
1bbc042d2b
commit
b0864b01de
2 changed files with 9 additions and 26 deletions
|
@ -12,31 +12,14 @@
|
||||||
# Copyright (c) 2014 High Fidelity
|
# Copyright (c) 2014 High Fidelity
|
||||||
#
|
#
|
||||||
|
|
||||||
if (PRIOVR_LIBRARIES AND PRIOVR_INCLUDE_DIRS)
|
find_path(PRIOVR_INCLUDE_DIRS yei_skeletal_api.h ${PRIOVR_ROOT_DIR}/include)
|
||||||
# in cache already
|
|
||||||
set(PRIOVR_FOUND TRUE)
|
|
||||||
else (PRIOVR_LIBRARIES AND PRIOVR_INCLUDE_DIRS)
|
|
||||||
find_path(PRIOVR_INCLUDE_DIRS yei_skeletal_api.h ${PRIOVR_ROOT_DIR}/include)
|
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
find_library(PRIOVR_LIBRARIES Skeletal_API.lib ${PRIOVR_ROOT_DIR}/lib)
|
find_library(PRIOVR_LIBRARIES Skeletal_API.lib ${PRIOVR_ROOT_DIR}/lib)
|
||||||
endif (WIN32)
|
endif (WIN32)
|
||||||
|
|
||||||
if (PRIOVR_INCLUDE_DIRS AND PRIOVR_LIBRARIES)
|
|
||||||
set(PRIOVR_FOUND TRUE)
|
|
||||||
endif (PRIOVR_INCLUDE_DIRS AND PRIOVR_LIBRARIES)
|
|
||||||
|
|
||||||
if (PRIOVR_FOUND)
|
include(FindPackageHandleStandardArgs)
|
||||||
if (NOT PRIOVR_FIND_QUIETLY)
|
find_package_handle_standard_args(PRIOVR DEFAULT_MSG PRIOVR_INCLUDE_DIRS PRIOVR_LIBRARIES)
|
||||||
message(STATUS "Found PrioVR... ${PRIOVR_LIBRARIES}")
|
|
||||||
endif (NOT PRIOVR_FIND_QUIETLY)
|
|
||||||
else ()
|
|
||||||
if (PRIOVR_FIND_REQUIRED)
|
|
||||||
message(FATAL_ERROR "Could not find PrioVR")
|
|
||||||
endif (PRIOVR_FIND_REQUIRED)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# show the PRIOVR_INCLUDE_DIRS and PRIOVR_LIBRARIES variables only in the advanced view
|
# show the PRIOVR_INCLUDE_DIRS and PRIOVR_LIBRARIES variables only in the advanced view
|
||||||
mark_as_advanced(PRIOVR_INCLUDE_DIRS PRIOVR_LIBRARIES)
|
mark_as_advanced(PRIOVR_INCLUDE_DIRS PRIOVR_LIBRARIES)
|
||||||
|
|
||||||
endif (PRIOVR_LIBRARIES AND PRIOVR_INCLUDE_DIRS)
|
|
|
@ -303,7 +303,7 @@ else (APPLE)
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
find_package(GLUT REQUIRED)
|
find_package(GLUT REQUIRED)
|
||||||
|
|
||||||
include_directories(SYSTEM "${GLUT_INCLUDE_DIR}")
|
include_directories(SYSTEM "${GLUT_INCLUDE_DIRS}")
|
||||||
|
|
||||||
if (${OPENGL_INCLUDE_DIR})
|
if (${OPENGL_INCLUDE_DIR})
|
||||||
include_directories(SYSTEM "${OPENGL_INCLUDE_DIR}")
|
include_directories(SYSTEM "${OPENGL_INCLUDE_DIR}")
|
||||||
|
|
Loading…
Reference in a new issue