From d2b2c90a06bf1f4a21df196430d1f95856900410 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Thu, 30 Jun 2011 17:36:45 -0400 Subject: Move the modules, modules-test and systeminfo subdirs into 'attic' --- attic/modules/FindFlac.cmake | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 attic/modules/FindFlac.cmake (limited to 'attic/modules/FindFlac.cmake') diff --git a/attic/modules/FindFlac.cmake b/attic/modules/FindFlac.cmake new file mode 100644 index 00000000..208e3fc3 --- /dev/null +++ b/attic/modules/FindFlac.cmake @@ -0,0 +1,34 @@ +# - Try to find Flac, the Free Lossless Audio Codec +# Once done this will define +# +# FLAC_FOUND - system has Flac +# FLAC_INCLUDE_DIR - the Flac include directory +# FLAC_LIBRARIES - Link these to use Flac +# FLAC_OGGFLAC_LIBRARIES - Link these to use OggFlac +# +# No version checking is done - use FLAC_API_VERSION_CURRENT to +# conditionally compile version-dependent code + +# Copyright (c) 2006, Laurent Montel, +# Copyright (c) 2006, Alexander Neundorf, +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +FIND_PATH(FLAC_INCLUDE_DIR FLAC/metadata.h) + +FIND_LIBRARY(FLAC_LIBRARIES NAMES FLAC ) + +FIND_LIBRARY(FLAC_OGG_LIBRARY NAMES OggFLAC) + + +IF(FLAC_LIBRARIES AND FLAC_OGG_LIBRARY) + SET(FLAC_OGGFLAC_LIBRARIES ${FLAC_OGG_LIBRARY} ${FLAC_LIBRARIES}) +ENDIF(FLAC_LIBRARIES AND FLAC_OGG_LIBRARY) + +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(Flac REQUIRED_VARS FLAC_LIBRARIES FLAC_INCLUDE_DIR) + +# show the FLAC_INCLUDE_DIR and FLAC_LIBRARIES variables only in the advanced view +MARK_AS_ADVANCED(FLAC_INCLUDE_DIR FLAC_LIBRARIES FLAC_OGG_LIBRARY) + -- cgit v1.2.1