2011-01-30 20:16:10 -07:00
|
|
|
set(SRCS Src/BPFunctions.cpp
|
|
|
|
Src/BPMemory.cpp
|
2010-11-01 09:47:02 -06:00
|
|
|
Src/BPStructs.cpp
|
|
|
|
Src/CPMemory.cpp
|
2011-01-30 20:16:10 -07:00
|
|
|
Src/CommandProcessor.cpp
|
2010-11-01 09:47:02 -06:00
|
|
|
Src/DLCache.cpp
|
2011-01-30 20:16:10 -07:00
|
|
|
Src/Debugger.cpp
|
2010-11-01 09:47:02 -06:00
|
|
|
Src/Fifo.cpp
|
2010-11-14 16:31:53 -07:00
|
|
|
Src/FramebufferManagerBase.cpp
|
2010-11-01 09:47:02 -06:00
|
|
|
Src/HiresTextures.cpp
|
|
|
|
Src/ImageWrite.cpp
|
|
|
|
Src/IndexGenerator.cpp
|
2011-02-05 16:57:12 -07:00
|
|
|
Src/LightingShaderGen.cpp
|
2010-11-17 19:21:26 -07:00
|
|
|
Src/MainBase.cpp
|
2010-11-01 09:47:02 -06:00
|
|
|
Src/OnScreenDisplay.cpp
|
|
|
|
Src/OpcodeDecoding.cpp
|
2011-01-30 20:16:10 -07:00
|
|
|
Src/OpenCL.cpp
|
|
|
|
Src/OpenCL/OCLTextureDecoder.cpp
|
2010-11-01 09:47:02 -06:00
|
|
|
Src/PixelEngine.cpp
|
|
|
|
Src/PixelShaderGen.cpp
|
|
|
|
Src/PixelShaderManager.cpp
|
2010-11-17 19:21:26 -07:00
|
|
|
Src/RenderBase.cpp
|
2010-11-01 09:47:02 -06:00
|
|
|
Src/Statistics.cpp
|
|
|
|
Src/TextureCacheBase.cpp
|
|
|
|
Src/TextureConversionShader.cpp
|
|
|
|
Src/TextureDecoder.cpp
|
|
|
|
Src/VertexLoader.cpp
|
|
|
|
Src/VertexLoaderManager.cpp
|
|
|
|
Src/VertexLoader_Color.cpp
|
|
|
|
Src/VertexLoader_Normal.cpp
|
|
|
|
Src/VertexLoader_Position.cpp
|
|
|
|
Src/VertexLoader_TextCoord.cpp
|
|
|
|
Src/VertexManagerBase.cpp
|
|
|
|
Src/VertexShaderGen.cpp
|
|
|
|
Src/VertexShaderManager.cpp
|
|
|
|
Src/VideoConfig.cpp
|
|
|
|
Src/VideoState.cpp
|
|
|
|
Src/XFMemory.cpp
|
2010-11-13 13:02:01 -07:00
|
|
|
Src/XFStructs.cpp
|
2011-01-30 20:16:10 -07:00
|
|
|
Src/memcpy_amd.cpp)
|
2010-11-01 09:47:02 -06:00
|
|
|
|
2011-03-31 14:41:59 -06:00
|
|
|
set(LIBS core)
|
2010-12-19 12:43:18 -07:00
|
|
|
if(wxWidgets_FOUND AND WIN32)
|
|
|
|
set(SRCS ${SRCS} Src/EmuWindow.cpp)
|
|
|
|
endif()
|
|
|
|
|
2010-12-09 19:00:05 -07:00
|
|
|
if(LIBAV_FOUND OR WIN32)
|
2010-11-14 14:14:26 -07:00
|
|
|
set(SRCS ${SRCS} Src/AVIDump.cpp)
|
|
|
|
endif()
|
|
|
|
|
2010-11-01 09:47:02 -06:00
|
|
|
add_library(videocommon STATIC ${SRCS})
|
2011-03-31 14:41:59 -06:00
|
|
|
target_link_libraries(videocommon ${LIBS})
|
|
|
|
|
2010-11-16 18:03:39 -07:00
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
2010-12-09 19:00:05 -07:00
|
|
|
if(LIBAV_FOUND)
|
2011-03-31 14:41:59 -06:00
|
|
|
target_link_libraries(videocommon ${LIBS} ${LIBAV_LIBRARIES})
|
2010-11-14 14:14:26 -07:00
|
|
|
add_definitions(-D__STDC_CONSTANT_MACROS)
|
|
|
|
endif()
|
2010-11-16 18:03:39 -07:00
|
|
|
endif()
|