Setup opencl to work like most of the other externals. Autodetect native shared libraries and if not found fall back to the static libs built from the externals.

Also some general clean up of the main CMakeLists.txt file.  I think it is nice to keep the checks and analysis of the results together.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6363 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2010-11-09 00:29:07 +00:00
parent 15d74b7461
commit e72ae04e5c
3 changed files with 29 additions and 33 deletions

View File

@ -33,9 +33,9 @@ set(SRCS Src/BPMemory.cpp
Src/XFMemory.cpp
Src/XFStructs.cpp)
if(OPENCL_FOUND)
if(NOT APPLE)
set(SRCS ${SRCS} Src/OpenCL/OCLTextureDecoder.cpp)
endif(OPENCL_FOUND)
endif(NOT APPLE)
add_library(videocommon STATIC ${SRCS})
if(UNIX)

View File

@ -30,7 +30,7 @@ if(APPLE AND NOT wxWidgets_FOUND)
set(SRCS ${SRCS} Src/cocoaGL.m)
elseif(WIN32)
set(SRCS ${SRCS} Src/OS/Win32.cpp)
elseif(NOT APPLE AND OPENCL_FOUND)
elseif(NOT APPLE)
set(LIBS ${LIBS} OpenCL)
endif()