1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-03 17:19:46 +02:00

Remove unnecessary CMake modules

This commit is contained in:
darkf 2017-09-13 13:54:59 -05:00 committed by Daniel Evans
parent ec2e940924
commit 727dbbd218
2 changed files with 0 additions and 71 deletions

View File

@ -1,34 +0,0 @@
# - Try to find libsndfile
# Once done, this will define
#
# LIBSNDFILE_FOUND - system has libsndfile
# LIBSNDFILE_INCLUDE_DIRS - the libsndfile include directories
# LIBSNDFILE_LIBRARIES - link these to use libsndfile
# Use pkg-config to get hints about paths
find_package(PkgConfig QUIET)
if(PKG_CONFIG_FOUND)
pkg_check_modules(LIBSNDFILE_PKGCONF sndfile)
endif(PKG_CONFIG_FOUND)
# Include dir
find_path(LIBSNDFILE_INCLUDE_DIR
NAMES sndfile.h
PATHS ${LIBSNDFILE_PKGCONF_INCLUDE_DIRS}
)
# Library
find_library(LIBSNDFILE_LIBRARY
NAMES sndfile libsndfile-1
PATHS ${LIBSNDFILE_PKGCONF_LIBRARY_DIRS}
)
find_package(PackageHandleStandardArgs)
find_package_handle_standard_args(LibSndFile DEFAULT_MSG LIBSNDFILE_LIBRARY LIBSNDFILE_INCLUDE_DIR)
if(LIBSNDFILE_FOUND)
set(LIBSNDFILE_LIBRARIES ${LIBSNDFILE_LIBRARY})
set(LIBSNDFILE_INCLUDE_DIRS ${LIBSNDFILE_INCLUDE_DIR})
endif(LIBSNDFILE_FOUND)
mark_as_advanced(LIBSNDFILE_LIBRARY LIBSNDFILE_LIBRARIES LIBSNDFILE_INCLUDE_DIR LIBSNDFILE_INCLUDE_DIRS)

View File

@ -1,37 +0,0 @@
#
# This script defines the following variables:
# - MAD_LIBRARY: The mad library
# - MAD_FOUND: true if all the required modules are found
# - MAD_INCLUDE_DIR: the path where MAD headers are located
#
set(FIND_MAD_PATHS
${MAD_ROOT}
$ENV{MAD_ROOT}
~/Library/Frameworks
/Library/Frameworks
/usr/local
/usr
/sw
/opt/local
/opt/csw
/opt)
find_path(MAD_INCLUDE_DIR mad.h
PATH_SUFFIXES include
PATHS ${FIND_MAD_PATHS})
find_library(MAD_LIBRARY
NAMES mad
PATH_SUFFIXES lib64 lib
PATHS ${FIND_MAD_PATHS})
if (MAD_INCLUDE_DIR AND MAD_LIBRARY)
set (MAD_FOUND TRUE)
endif ()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(MAD
REQUIRED_VARS MAD_LIBRARY MAD_INCLUDE_DIR)