2010-11-01 15:47:02 +00:00
|
|
|
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)
|
2010-11-08 02:51:31 +00:00
|
|
|
set(SRCS ${SRCS} Src/cocoaGL.m)
|
2010-11-06 03:49:18 +00:00
|
|
|
elseif(WIN32)
|
2010-11-08 02:51:31 +00:00
|
|
|
set(SRCS ${SRCS} Src/OS/Win32.cpp)
|
2010-11-09 00:29:07 +00:00
|
|
|
elseif(NOT APPLE)
|
2010-11-10 01:59:53 +00:00
|
|
|
set(LIBS ${LIBS} clrun)
|
2010-11-01 15:47:02 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(Plugin_VideoOGL SHARED ${SRCS})
|
|
|
|
target_link_libraries(Plugin_VideoOGL ${LIBS})
|
2010-11-08 14:04:56 +00:00
|
|
|
install(TARGETS Plugin_VideoOGL
|
2010-11-11 15:50:52 +00:00
|
|
|
LIBRARY DESTINATION ${plugindir}
|
|
|
|
RUNTIME DESTINATION ${plugindir})
|