File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -13,19 +13,24 @@ endif()
13
13
14
14
# Check GLUT
15
15
find_package (GLUT )
16
- if (NOT GLUT_FOUND )
16
+
17
+ if (NOT GLUT_Xi_LIBRARY OR NOT GLUT_Xmu_LIBRARY )
18
+ set (GLUT_FOUND FALSE )
19
+ endif ()
20
+
21
+ if (NOT GLUT_FOUND )
17
22
message ("GLUT not found, will not build avplay app." )
18
23
return ()
19
24
endif ()
20
25
21
26
# Build app
22
27
include_directories (${AVTRANSCODER_SRC_PATH} ${FFMPEG_INCLUDE_DIR} )
23
- include_directories ( ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS } )
28
+ include_directories ( ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIR } )
24
29
25
30
file (GLOB AVPLAY_SRC_FILES "*.cpp" "*.hpp" )
26
31
add_executable (avplay ${AVPLAY_SRC_FILES} )
27
32
set_target_properties (avplay PROPERTIES VERSION ${AVTRANSCODER_VERSION} )
28
- target_link_libraries (avplay avtranscoder-shared ${OPENGL_LIBRARIES} ${GLUT_LIBRARY } )
33
+ target_link_libraries (avplay avtranscoder-shared ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES } )
29
34
30
35
# Install app
31
36
if (WIN32 )
You can’t perform that action at this time.
0 commit comments