mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 03:22:30 +02:00
4782a8fc5a
- various fixes for using CMake on Windows - support building external SDL, zlib, CLRun, wxWidgets - support using precompiled GLew and WiiUse libs on Windows For what it's worth, I'm not quite sure if I got all the wx files right... Building with MSVC2008 still doesn't work yet, but is a lot closer now. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6361 8ced0084-cf51-0410-be5f-012b33b47a6e
42 lines
903 B
CMake
42 lines
903 B
CMake
set(SRCS Src/BPFunctions.cpp
|
|
Src/FramebufferManager.cpp
|
|
Src/GLUtil.cpp
|
|
Src/main.cpp
|
|
Src/NativeVertexFormat.cpp
|
|
Src/PixelShaderCache.cpp
|
|
Src/PostProcessing.cpp
|
|
Src/RasterFont.cpp
|
|
Src/Render.cpp
|
|
Src/TextureCache.cpp
|
|
Src/TextureConverter.cpp
|
|
Src/VertexShaderCache.cpp
|
|
Src/VertexManager.cpp
|
|
Src/XFB.cpp)
|
|
|
|
set(LIBS videocommon
|
|
GLEW
|
|
SOIL
|
|
common
|
|
Cg
|
|
CgGL)
|
|
|
|
if(wxWidgets_FOUND)
|
|
set(SRCS ${SRCS}
|
|
Src/GUI/ConfigDlg.cpp
|
|
Src/Debugger/Debugger.cpp)
|
|
endif(wxWidgets_FOUND)
|
|
|
|
if(APPLE AND NOT wxWidgets_FOUND)
|
|
set(SRCS ${SRCS} Src/cocoaGL.m)
|
|
elseif(WIN32)
|
|
set(SRCS ${SRCS} Src/OS/Win32.cpp)
|
|
elseif(NOT APPLE AND OPENCL_FOUND)
|
|
set(LIBS ${LIBS} OpenCL)
|
|
endif()
|
|
|
|
add_library(Plugin_VideoOGL SHARED ${SRCS})
|
|
target_link_libraries(Plugin_VideoOGL ${LIBS})
|
|
install(TARGETS Plugin_VideoOGL
|
|
LIBRARY DESTINATION ${plugindir}
|
|
RUNTIME DESTINATION ${plugindir})
|