diff options
author | Allen Winter <allen.winter@kdab.com> | 2011-06-30 17:36:45 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2011-06-30 17:36:45 -0400 |
commit | d2b2c90a06bf1f4a21df196430d1f95856900410 (patch) | |
tree | aba9d2a48d7b2ac1e960e1b68218394524c7e6a8 /attic/modules/FindKdeMultimedia.cmake | |
parent | e15ffacc69242c89107afbfda6f8ece9f2b56633 (diff) | |
download | extra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.gz extra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.bz2 |
Move the modules, modules-test and systeminfo subdirs into 'attic'
Diffstat (limited to 'attic/modules/FindKdeMultimedia.cmake')
-rw-r--r-- | attic/modules/FindKdeMultimedia.cmake | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/attic/modules/FindKdeMultimedia.cmake b/attic/modules/FindKdeMultimedia.cmake new file mode 100644 index 00000000..c8850291 --- /dev/null +++ b/attic/modules/FindKdeMultimedia.cmake @@ -0,0 +1,48 @@ +# Module to see if we have KDE4 kdemultimedia installed +# +# This module defines +# KDEMULTIMEDIA_INCLUDE_DIR - the include dir +# KCDDB_LIBRARY - the kcddb library +# KCOMPACTDISC_LIBRARY - the kcompactdisk library +# KDEMULTIMEDIA_LIBRARIES - all of the KDE multimedia libraries together +# KDEMULTIMEDIA_FOUND - true if the above have been found + +# KDEMULTIMEDIA_INCLUDE_DIR +# KDEMULTIMEDIA_FOUND +# Copyright (C) 2007 Laurent Montel <montel@kde.org> +# Copyright (C) 2007 Gerd Fleischer <gerdfleischer@web.de> +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + + +if (KDEMULTIMEDIA_INCLUDE_DIR) + # Already in cache, be silent + set(KDEMULTIMEDIA_FOUND TRUE) +endif (KDEMULTIMEDIA_INCLUDE_DIR) + + +find_path(KDEMULTIMEDIA_INCLUDE_DIR NAMES libkcddb/kcddb.h libkcompactdisc/kcompactdisc.h + PATHS + ${INCLUDE_INSTALL_DIR} +) + +find_library(KCDDB_LIBRARY NAMES kcddb + PATHS + ${LIB_INSTALL_DIR} +) + +find_library(KCOMPACTDISC_LIBRARY NAMES kcompactdisc + PATHS + ${LIB_INSTALL_DIR} +) + +# audioencoder, audiocdplugins? + +set(KDEMULTIMEDIA_LIBRARIES ${KCDDB_LIBRARY} ${KCOMPACTDISC_LIBRARY}) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(KdeMultimedia DEFAULT_MSG KDEMULTIMEDIA_LIBRARIES KDEMULTIMEDIA_INCLUDE_DIR ) + +mark_as_advanced(KDEMULTIMEDIA_INCLUDE_DIR KDEMULTIMEDIA_LIBRARIES) + |