diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-07-19 13:00:51 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-07-19 13:00:51 (GMT) |
commit | c7770b8edbff442267563bd3036cef8fdb0cc4a9 (patch) | |
tree | 1c73f377e04981e72043a9ac5fff8fef0eca343b /Modules/FindMPEG.cmake | |
parent | b6b1ebe2950e2437fffd4eecbe3f1992fc63e812 (diff) | |
download | CMake-c7770b8edbff442267563bd3036cef8fdb0cc4a9.zip CMake-c7770b8edbff442267563bd3036cef8fdb0cc4a9.tar.gz CMake-c7770b8edbff442267563bd3036cef8fdb0cc4a9.tar.bz2 |
ENH: use the new FIND_PACKAGE_HANDLE_STANDARD_ARGS() macro in most of the
not-too-complicated modules
-remove unnecessary default search paths used in the FIND_XXX() calls
Alex
Diffstat (limited to 'Modules/FindMPEG.cmake')
-rw-r--r-- | Modules/FindMPEG.cmake | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/Modules/FindMPEG.cmake b/Modules/FindMPEG.cmake index 225b243..5437b21 100644 --- a/Modules/FindMPEG.cmake +++ b/Modules/FindMPEG.cmake @@ -8,28 +8,22 @@ # MPEG_vo_LIBRARY, where to find the vo library. FIND_PATH(MPEG_INCLUDE_DIR mpeg2dec/include/video_out.h - /usr/local/include - /usr/include /usr/local/livid ) FIND_LIBRARY(MPEG_mpeg2_LIBRARY mpeg2 - /usr/local/lib - /usr/lib /usr/local/livid/mpeg2dec/libmpeg2/.libs ) FIND_LIBRARY( MPEG_vo_LIBRARY vo - /usr/local/lib - /usr/lib /usr/local/livid/mpeg2dec/libvo/.libs ) -SET( MPEG_FOUND "NO" ) -IF(MPEG_INCLUDE_DIR) - IF(MPEG_mpeg2_LIBRARY) - SET( MPEG_FOUND "YES" ) - SET( MPEG_LIBRARIES ${MPEG_mpeg2_LIBRARY} ${MPEG_vo_LIBRARY} ) - ENDIF(MPEG_mpeg2_LIBRARY) -ENDIF(MPEG_INCLUDE_DIR) +# handle the QUIETLY and REQUIRED arguments and set MPEG2_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPEG MPEG_INCLUDE_DIR MPEG_mpeg2_LIBRARY) +IF(MPEG_FOUND) + SET( MPEG_LIBRARIES ${MPEG_mpeg2_LIBRARY} ${MPEG_vo_LIBRARY} ) +ENDIF(MPEG_FOUND) |