CMake: Add missing OpenGL files in GTK build

This commit is contained in:
Maarten Bent 2018-01-20 00:27:02 +01:00
parent 4a37f2dd15
commit 76617ddb1e
3 changed files with 20 additions and 0 deletions

View File

@ -3099,6 +3099,16 @@ set(OPENGL_MSW_HDR
wx/msw/glcanvas.h
)
set(OPENGL_GTK_SRC
src/gtk/glcanvas.cpp
src/unix/glx11.cpp
)
set(OPENGL_GTK_HDR
wx/gtk/glcanvas.h
wx/unix/glx11.h
)
set(OPENGL_OSX_SHARED_SRC
src/osx/cocoa/glcanvas.mm
src/osx/glcanvas_osx.cpp

View File

@ -13,6 +13,8 @@ wx_append_sources(GL_FILES OPENGL_CMN)
if(WIN32)
wx_append_sources(GL_FILES OPENGL_MSW)
elseif(WXGTK)
wx_append_sources(GL_FILES OPENGL_GTK)
elseif(APPLE)
wx_append_sources(GL_FILES OPENGL_OSX_SHARED)
endif()

View File

@ -3005,6 +3005,14 @@ OPENGL_CMN_HDR =
OPENGL_MSW_SRC =
src/msw/glcanvas.cpp
OPENGL_GTK_HDR =
wx/gtk/glcanvas.h
wx/unix/glx11.h
OPENGL_GTK_SRC =
src/gtk/glcanvas.cpp
src/unix/glx11.cpp
OPENGL_MSW_HDR =
wx/msw/glcanvas.h