mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-27 17:39:41 -06:00
fix oudated CMake compile settings, add OpenGL dependency for Linux
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@ obj
|
||||
*.o
|
||||
melon_grc.c
|
||||
melon_grc.h
|
||||
cmake-build
|
||||
|
@ -22,8 +22,13 @@ add_library(core STATIC
|
||||
SPU.cpp
|
||||
Wifi.cpp
|
||||
WifiAP.cpp
|
||||
# opengl backend stuff
|
||||
GPU3D_OpenGL.cpp
|
||||
OpenGLSupport.cpp
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(core ole32 comctl32 ws2_32)
|
||||
else()
|
||||
target_link_libraries(core OpenGL)
|
||||
endif()
|
||||
|
@ -18,6 +18,8 @@
|
||||
|
||||
#include "OpenGLSupport.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
|
||||
DO_PROCLIST(DECLPROC);
|
||||
|
||||
|
@ -10,6 +10,8 @@ SET(SOURCES_LIBUI
|
||||
DlgEmuSettings.cpp
|
||||
DlgInputConfig.cpp
|
||||
DlgWifiSettings.cpp
|
||||
# opengl backend stuff
|
||||
DlgVideoSettings.cpp
|
||||
)
|
||||
|
||||
option(BUILD_SHARED_LIBS "Whether to build libui as a shared library or a static library" ON)
|
||||
|
Reference in New Issue
Block a user