Fix for issue 3507. Compile with old GLEW versions, support user-specified CFLAGS and link plugins to all the used libs.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6441 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Christian Morales Vega
2010-11-18 23:27:27 +00:00
parent 63aae7e5e0
commit 7632a5abd4
7 changed files with 47 additions and 24 deletions

View File

@ -17,3 +17,18 @@ macro(check_lib var lib required)
endif()
endmacro()
macro(check_lib_and_header var lib header required)
find_library(${var} ${lib})
find_path(${var}_INCLUDE ${header})
if(${var} AND ${var}_INCLUDE)
message("${lib} found")
set(${var}_FOUND 1 CACHE INTERNAL "")
else()
if(${required} STREQUAL "REQUIRED")
message(FATAL_ERROR "${lib} is required but not found")
else()
message("${lib} not found")
endif()
endif()
endmacro()