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
|
|
|
|
Src/PixelShaderCache.cpp
|
|
|
|
Src/PostProcessing.cpp
|
|
|
|
Src/RasterFont.cpp
|
|
|
|
Src/Render.cpp
|
|
|
|
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
|
|
|
|
GLEW
|
|
|
|
SOIL
|
|
|
|
common
|
2010-11-18 23:27:27 +00:00
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
${X11_LIBRARIES})
|
2010-11-01 15:47:02 +00:00
|
|
|
|
|
|
|
if(wxWidgets_FOUND)
|
2010-11-30 01:20:05 +00:00
|
|
|
set(LIBS videouicommon ${LIBS} ${wxWidgets_LIBRARIES})
|
2010-11-01 15:47:02 +00:00
|
|
|
endif(wxWidgets_FOUND)
|
|
|
|
|
2010-11-17 01:03:39 +00:00
|
|
|
if((${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 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-12-04 15:19:04 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(APPLE OR WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
|
|
set(LIBS ${LIBS} Cg CgGL)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
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()
|
|
|
|
|
2010-11-18 23:27:27 +00:00
|
|
|
add_library(Plugin_VideoOGL MODULE ${SRCS})
|
2010-11-01 15:47:02 +00:00
|
|
|
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})
|