2010-11-18 03:05:52 +00:00
|
|
|
set(SRCS Src/FramebufferManager.cpp
|
2010-11-01 15:47:02 +00:00
|
|
|
Src/GLUtil.cpp
|
|
|
|
Src/main.cpp
|
|
|
|
Src/NativeVertexFormat.cpp
|
2012-06-17 11:58:29 +00:00
|
|
|
Src/PerfQuery.cpp
|
2010-11-01 15:47:02 +00:00
|
|
|
Src/PixelShaderCache.cpp
|
|
|
|
Src/PostProcessing.cpp
|
2011-12-01 03:00:21 +00:00
|
|
|
Src/ProgramShaderCache.cpp
|
2010-11-01 15:47:02 +00:00
|
|
|
Src/RasterFont.cpp
|
|
|
|
Src/Render.cpp
|
2013-02-20 00:22:38 +00:00
|
|
|
Src/SamplerCache.cpp
|
2013-01-31 22:11:53 +00:00
|
|
|
Src/StreamBuffer.cpp
|
2010-11-01 15:47:02 +00:00
|
|
|
Src/TextureCache.cpp
|
|
|
|
Src/TextureConverter.cpp
|
|
|
|
Src/VertexShaderCache.cpp
|
2010-11-14 23:31:53 +00:00
|
|
|
Src/VertexManager.cpp)
|
2010-11-01 15:47:02 +00:00
|
|
|
|
|
|
|
set(LIBS videocommon
|
|
|
|
SOIL
|
|
|
|
common
|
2010-11-18 23:27:27 +00:00
|
|
|
${X11_LIBRARIES})
|
2012-12-17 20:54:20 +00:00
|
|
|
if(USE_EGL)
|
|
|
|
set(LIBS ${LIBS}
|
|
|
|
EGL)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(USE_GLES)
|
|
|
|
set(LIBS ${LIBS}
|
|
|
|
GLESv2)
|
|
|
|
else()
|
|
|
|
set(LIBS ${LIBS}
|
|
|
|
GLEW
|
|
|
|
${OPENGL_LIBRARIES})
|
|
|
|
endif()
|
2010-11-01 15:47:02 +00:00
|
|
|
|
|
|
|
if(wxWidgets_FOUND)
|
2011-02-11 21:49:29 +00:00
|
|
|
set(LIBS ${LIBS} ${wxWidgets_LIBRARIES})
|
2010-11-01 15:47:02 +00:00
|
|
|
endif(wxWidgets_FOUND)
|
|
|
|
|
2011-02-02 18:21:20 +00:00
|
|
|
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
2010-11-10 01:59:53 +00:00
|
|
|
set(LIBS ${LIBS} clrun)
|
2010-11-01 15:47:02 +00:00
|
|
|
endif()
|
|
|
|
|
2010-12-04 15:19:04 +00:00
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
|
|
|
|
${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
|
|
|
|
set(LIBS ${LIBS} usbhid)
|
|
|
|
endif()
|
|
|
|
|
2011-01-31 02:13:10 +00:00
|
|
|
add_library(videoogl STATIC ${SRCS})
|
|
|
|
target_link_libraries(videoogl ${LIBS})
|