@@ -70,21 +70,11 @@ endif()
70
70
if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Darwin" )
71
71
message (STATUS "TARGET_MAC" )
72
72
73
- find_package (OpenGL REQUIRED)
74
73
find_package (Threads REQUIRED)
75
- find_package (BZIP2 REQUIRED)
74
+ find_package (BZip2 REQUIRED)
76
75
find_package (ZLIB REQUIRED)
77
76
78
- if (NOT OPENGL_FOUND)
79
- message (ERROR " OPENGL not found!" )
80
- endif (NOT OPENGL_FOUND)
81
-
82
- include_directories (${OpenGL_INCLUDE_DIRS} )
83
- link_directories (${OpenGL_LIBRARY_DIRS} )
84
- add_definitions (${OpenGL_DEFINITIONS} )
85
-
86
77
LIST (APPEND PLATFORM_LINKLIBS
87
- ${OPENGL_LIBRARY}
88
78
${BZIP2_LIBRARY}
89
79
${ZLIB_LIBRARY}
90
80
dl
@@ -95,23 +85,13 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
95
85
endif ()
96
86
97
87
if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Linux" )
98
- find_package (OpenGL REQUIRED)
99
- if (NOT OPENGL_FOUND)
100
- message (ERROR " OPENGL not found!" )
101
- endif (NOT OPENGL_FOUND)
102
-
103
88
set (CMAKE_THREAD_PREFER_PTHREAD TRUE )
104
89
set (THREADS_PREFER_PTHREAD_FLAG TRUE )
105
90
find_package (Threads REQUIRED)
106
91
107
- include_directories (${OpenGL_INCLUDE_DIRS} )
108
- link_directories (${OpenGL_LIBRARY_DIRS} )
109
- add_definitions (${OpenGL_DEFINITIONS} )
110
-
111
92
LIST (APPEND PLATFORM_LINKLIBS
112
93
dl
113
94
Threads::Threads
114
- ${OPENGL_LIBRARY}
115
95
z
116
96
)
117
97
0 commit comments