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-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()
|
|
|
|
|
2011-01-31 02:13:10 +00:00
|
|
|
add_library(videoogl STATIC ${SRCS})
|
|
|
|
target_link_libraries(videoogl ${LIBS})
|