summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2010-12-10 02:00:05 +0000
committerGlenn Rice <glennricster@gmail.com>2010-12-10 02:00:05 +0000
commit06013d5eec9a906f9d64df4de50a1ca2cc3adeea (patch)
treee18e7bb35e1b1acbcdf580254b7e7784fc7c0104 /Source/Core/VideoCommon
parentc718d2e630224d817fcf2f91ebf5ad9e91591773 (diff)
Make the cmake check_lib macro more versatile. It first tries pkg-config, and if that fails it then check for libraries and required headers. Also cleaned up the output a little bit.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6544 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/CMakeLists.txt b/Source/Core/VideoCommon/CMakeLists.txt
index 15275707dd..5013ea07da 100644
--- a/Source/Core/VideoCommon/CMakeLists.txt
+++ b/Source/Core/VideoCommon/CMakeLists.txt
@@ -39,14 +39,14 @@ set(SRCS Src/BPMemory.cpp
Src/XFStructs.cpp
Src/OpenCL/OCLTextureDecoder.cpp)
-if(ENCODE_FRAMEDUMPS OR WIN32)
+if(LIBAV_FOUND OR WIN32)
set(SRCS ${SRCS} Src/AVIDump.cpp)
endif()
add_library(videocommon STATIC ${SRCS})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- if(ENCODE_FRAMEDUMPS)
- target_link_libraries(videocommon avcodec avformat swscale avutil)
+ if(LIBAV_FOUND)
+ target_link_libraries(videocommon ${LIBAV_LIBRARIES})
add_definitions(-D__STDC_CONSTANT_MACROS)
endif()
add_definitions(-fPIC)