fix oudated CMake compile settings, add OpenGL dependency for Linux
This commit is contained in:
parent
99dbbb0b04
commit
31e0f15797
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue