Skip to content

Instantly share code, notes, and snippets.

@thestr4ng3r
Last active February 17, 2018 11:08
Show Gist options
  • Save thestr4ng3r/f1f103a5cada50d6690e9a02c33295b8 to your computer and use it in GitHub Desktop.
Save thestr4ng3r/f1f103a5cada50d6690e9a02c33295b8 to your computer and use it in GitHub Desktop.
CMake find module for FLAC++
# - Find libFLAC++
#
# This module defines
# FLACPP_FOUND - True if libFLAC++ has been found.
# FLACPP_LIBRARIES - List of libraries when using libFLAC++.
# FLACPP_INCLUDE_DIRS - libFLAC++ include directories.
# Look for the header file.
find_path(FLACPP_INCLUDE_DIRS
NAMES FLAC++/all.h FLAC++/decoder.h FLAC++/encoder.h FLAC++/export.h FLAC++/metadata.h)
# Find the library.
find_library(FLACPP_LIBRARIES
NAMES FLAC++)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(FLACPP DEFAULT_MSG FLACPP_LIBRARIES FLACPP_INCLUDE_DIRS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment