More cmake work.

Added autodetection of shared libraries.
Added a check for Xrandr.
Fix OpenAL linkage.
Copy User and Sys directories to lower case in the binary directory.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6338 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2010-11-04 02:01:07 +00:00
parent 7b23bf666f
commit 4b0d4ded98
3 changed files with 55 additions and 19 deletions

View File

@ -20,8 +20,8 @@ else()
endif(AO_FOUND)
if(OPENAL_FOUND OR WIN32)
set(SRCS ${SRCS} Src/OpenALStream.cpp)
set(LIBS ${LIBS} ${OPENAL_LIBRARIES})
set(SRCS ${SRCS} Src/OpenALStream.cpp Src/aldlist.cpp)
set(LIBS ${LIBS} openal)
endif(OPENAL_FOUND OR WIN32)
if(PULSEAUDIO_FOUND)

View File

@ -53,6 +53,10 @@ else(wxWidgets_FOUND)
Src/cmdline.c)
endif()
if(XRANDR_FOUND)
set(LIBS ${LIBS} ${XRANDR_LIBRARIES})
endif(XRANDR_FOUND)
if(WIN32)
set(SRCS ${SRCS} Src/stdafx.cpp)
elseif(APPLE AND NOT wxWidgets_FOUND)