diff --git a/build/cmake/files.cmake b/build/cmake/files.cmake index 1253477e0b..f48332ddc7 100644 --- a/build/cmake/files.cmake +++ b/build/cmake/files.cmake @@ -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 diff --git a/build/cmake/lib/gl/CMakeLists.txt b/build/cmake/lib/gl/CMakeLists.txt index 4b656a8217..18ac4ac855 100644 --- a/build/cmake/lib/gl/CMakeLists.txt +++ b/build/cmake/lib/gl/CMakeLists.txt @@ -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() diff --git a/build/files b/build/files index e38e8fd584..91dc2c0db9 100644 --- a/build/files +++ b/build/files @@ -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