We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e325ae9 + 82505ef commit 4158cfeCopy full SHA for 4158cfe
app/cpp/avplay/CMakeLists.txt
@@ -4,10 +4,21 @@
4
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
5
include(AvTranscoderMacros)
6
7
-# Build app
8
-find_package(OpenGL REQUIRED)
9
-find_package(GLUT REQUIRED)
+# Check OpenGL
+find_package(OpenGL)
+if(NOT OPENGL_FOUND)
10
+ message("OpenGL not found, will not build avplay app.")
11
+ return()
12
+endif()
13
+
14
+# Check GLUT
15
+find_package(GLUT)
16
+if(NOT GLUT_FOUND)
17
+ message("GLUT not found, will not build avplay app.")
18
19
20
21
+# Build app
22
include_directories(${AVTRANSCODER_SRC_PATH} ${FFMPEG_INCLUDE_DIR})
23
include_directories( ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS} )
24
0 commit comments