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
|
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
|
|
|
|
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)
|
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-12-05 00:12:09 +00:00
|
|
|
if(WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
2010-12-04 15:19:04 +00:00
|
|
|
set(LIBS ${LIBS} Cg CgGL)
|
2011-12-05 00:12:09 +00:00
|
|
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
|
|
list(APPEND LIBS "${CMAKE_SOURCE_DIR}/Externals/Cg/Cg.framework")
|
2010-12-04 15:19:04 +00:00
|
|
|
endif()
|
|
|
|
|
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})
|